-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (34 loc) · 1.27 KB
/
Copy pathupdate_application_status.yml
File metadata and controls
43 lines (34 loc) · 1.27 KB
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
39
40
41
42
43
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