Create Daily README #56
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: Create Daily README | |
| permissions: | |
| contents: write | |
| on: | |
| schedule: | |
| - cron: '0 1 * * 1-5' # 한국 시간 오전 10시 = UTC 1시, 월~금 | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v3 | |
| with: | |
| persist-credentials: true | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt || true | |
| - name: Run create_day_md.py script #.github/scripts/create_day_md.py | |
| run: python .github/scripts/create_day_md.py | |
| - name: Commit and Push | |
| run: | | |
| git config user.name "github-actions" | |
| git config user.email "github-actions@github.com" | |
| git add . | |
| git commit -m "자동 생성된 README.md 추가" || echo "No changes to commit" | |
| git push |