Skip to content

Run Notion API Script #6

Run Notion API Script

Run Notion API Script #6

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