자격증명 길이를 항상 로그에 남긴다 (값은 출력하지 않음) #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: rebuild index | |
| on: | |
| push: | |
| branches: [main] | |
| # README.md and stats.json are written by this job; triggering on them loops. | |
| paths-ignore: | |
| - README.md | |
| - stats.json | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: rebuild-index | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: python3 scripts/build_readme.py | |
| - name: Commit if the index changed | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add README.md stats.json | |
| if git diff --cached --quiet; then | |
| echo "index already current" | |
| else | |
| git commit -m "index: rebuild from solutions on disk" | |
| git push | |
| fi |