Update Notion Log #13
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 Notion Log | |
| on: | |
| schedule: | |
| # 매일 15:05 UTC (한국 시간 00:05) 실행 | |
| - cron: '5 15 * * *' | |
| workflow_dispatch: # 수동 실행 버튼 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: pip install requests | |
| - name: Run script | |
| env: | |
| NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }} | |
| NOTION_DATABASE_ID: ${{ secrets.NOTION_DATABASE_ID }} | |
| run: python update_readme.py | |
| - name: Commit and Push | |
| run: | | |
| git config --global user.name "${{ secrets.GIT_USER_NAME || 'GitHub Action' }}" | |
| git config --global user.email "${{ secrets.GIT_USER_EMAIL || 'action@github.com' }}" | |
| git add . | |
| git commit -m "docs: update notion log" || exit 0 | |
| git push |