Monitor Notion API Changelog #24
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: Monitor Notion API Changelog | |
on: | |
schedule: | |
# Runs every day at midnight (UTC) | |
- cron: '0 0 * * *' | |
workflow_dispatch: # Enable manual trigger | |
jobs: | |
monitor-changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.13' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install httpx PyGithub beautifulsoup4 markdownify | |
- name: Monitor Notion API Changelog | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: python .github/scripts/monitor_notion_changelog.py | |
- name: Commit and push changes | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git add .github/scripts/known_entries.json | |
git commit -m "Update known entries file [skip ci]" || echo "No changes to commit" | |
git push |