Ensure GCal Watches #548
This file contains 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: Ensure GCal Watches | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
ensure-watches: | |
name: Ensure GCal Watches | |
runs-on: ubuntu-latest | |
permissions: | |
contents: "read" | |
id-token: "write" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup just | |
uses: extractions/setup-just@v1 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Utilize pip cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ env.pythonLocation }}-${{ hashFiles('events_page/requirements.txt') }} | |
- name: "Authenticate to Google Cloud" | |
uses: "google-github-actions/auth@v0" | |
with: | |
workload_identity_provider: "projects/538480189659/locations/global/workloadIdentityPools/los-verdes-lv-event-pagenerator/providers/los-verdes-lv-event-pagenerator" | |
service_account: "site-publisher@losverdesatx-events.iam.gserviceaccount.com" | |
- name: Ensure GCal Watches | |
run: just ensure-watches |