Monitor Activity #284
This file contains hidden or 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 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 | |
| fi |