Update README.md #11
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: Update README | |
| on: | |
| push: | |
| branches: | |
| - main # main 브랜치에 push될 때 실행 | |
| schedule: | |
| - cron: '0 0 * * *' # 매일 자정에 실행 | |
| jobs: | |
| update-readme: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.9" # Python 버전 지정 | |
| - name: Install dependencies | |
| run: pip install requests # 필요한 라이브러리 설치 | |
| - name: Run update script | |
| run: python update_readme.py # Python 스크립트 실행 | |
| - name: Commit and push changes | |
| run: | | |
| git config --local user.name "GitHub Actions" | |
| git config --local user.email "[email protected]" | |
| git add README.md | |
| git commit -m "Update README with solved problems" | |
| git push |