Run Notion API Script #6
This file contains 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: Automatically GDSC Member Data Update | |
on: | |
schedule: | |
- cron: '0 0 1 */3 *' # 매 3개월마다 1일에 실행 | |
workflow_dispatch: | |
jobs: | |
run_script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] # 업데이트된 버전 사용 | |
- name: Set up Python | |
uses: actions/[email protected] # 업데이트된 버전 사용 | |
with: | |
python-version: 3.11 | |
- name: Change to the repository directory | |
run: cd Google-DSC-Kookmin.github.io | |
- name: Setting .secrets.json | |
run: | | |
echo ${{ secrets.Notion_Token }} > .secrets.json | |
echo ${{ secrets.Notion_Database_ID }} >> .secrets.json | |
- name: Run script | |
run: python storeNotionDB.py |