[백준] 20057 마법사 상어와 토네이도 - 추가 정리 #23
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: Notion Sync Algorithm | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| # paths 부분을 삭제하거나 아래처럼 '**'로 변경해야 합니다. | |
| # 특정 폴더만 감시하고 싶다면 실제 폴더명(SWEA, 백준 등)을 적어야 합니다. | |
| # 여기서는 맘 편하게 모든 변경사항(**)에 대해 실행하고, | |
| # 파이썬 스크립트 내부에서 think.md 인지 거르도록 하는 게 가장 확실합니다. | |
| paths: | |
| - '**' | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.9' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install requests | |
| - name: Run Sync Script | |
| env: | |
| NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }} | |
| DATABASE_ID: ${{ secrets.DATABASE_ID }} | |
| # 파일명을 실제 파일명인 autosync.py로 수정했습니다. | |
| run: python autosync.py |