Developer Activity Tracker #110
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: Developer Activity Tracker | |
| on: | |
| schedule: | |
| # run every 3 days at 6pm est | |
| - cron: '0 23 */3 * *' | |
| workflow_dispatch: | |
| # allows manual triggering | |
| jobs: | |
| track-activity: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout code | |
| uses: actions/checkout@v3 | |
| - name: setup python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install requests python-dotenv | |
| - name: run activity tracker | |
| run: python .github/scripts/activity_tracker.py | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} | |
| GH_REPOSITORY: ${{ secrets.GH_REPOSITORY }} | |
| INACTIVITY_THRESHOLD_DAYS: ${{ secrets.INACTIVITY_THRESHOLD_DAYS }} | |
| NO_ISSUES_THRESHOLD_DAYS: ${{ secrets.NO_ISSUES_THRESHOLD_DAYS }} | |
| ACTIVE_DEVS: ${{ secrets.ACTIVE_DEVS }} |