Update Application Status #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: Update Application Status | |
| on: | |
| schedule: | |
| - cron: "0 9 * * *" # runs daily at 9 AM UTC | |
| workflow_dispatch: # allows manual trigger from GitHub UI | |
| permissions: | |
| contents: write | |
| id-token: write # needed for Workload Identity Federation | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Authenticate to Google Cloud | |
| uses: google-github-actions/auth@v3 | |
| with: | |
| workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }} | |
| service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: pip install google-auth google-auth-httplib2 google-api-python-client | |
| - name: Run tracker | |
| run: python3 .github/update_application_status.py --days 180 | |
| - name: Commit updated status | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add application_status.json | |
| git diff --cached --quiet || git commit -m "chore: update application status [skip ci]" | |
| git push |