[Silver V] Title: 날짜 계산, Time: 44 ms, Memory: 31256 KB -BaekjoonHub #436
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
| # // .github/workflows/update-readme.yml | |
| name: Update readme | |
| on: | |
| push: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| - name: Run update.py | |
| run: | | |
| python update.py | |
| - name: Commit changes | |
| run: | | |
| git config --global user.name "Ori-Gui" | |
| git config --global user.email "dign552@naver.com" | |
| git add README.md | |
| git diff --cached --quiet || git commit -m "auto update README.md" | |
| - name: Push changes | |
| run: | | |
| git push |