-
-
Notifications
You must be signed in to change notification settings - Fork 149
38 lines (31 loc) · 1.07 KB
/
notion-changelog-monitor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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