-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 994 Bytes
/
Copy pathmonitor.yml
File metadata and controls
38 lines (32 loc) · 994 Bytes
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 Activity
on:
schedule:
- cron: "0 */4 * * *"
workflow_dispatch:
permissions:
contents: write
issues: write
concurrency:
group: monitor
cancel-in-progress: false
jobs:
check:
runs-on: ubuntu-24.04
env:
GH_TOKEN: ${{ github.token }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
steps:
- uses: actions/checkout@v7
- name: Check tracked issues/PRs for new activity
run: python3 oss-contribution-tracker/monitor.py
- name: Commit state if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add oss-contribution-tracker/monitor_state.json
if git diff --cached --quiet; then
echo "no changes"
else
git commit -m "monitor: update state [skip ci]"
git push || echo "Branch protection prevented direct push; state preserved in run"
fi