Write GitHub Data To Google Cloud Storage #22
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: Write GitHub Data To Google Cloud Storage | |
on: | |
schedule: | |
- cron: "15 0 * * *" | |
permissions: | |
contents: read | |
id-token: write | |
jobs: | |
github-to-gcs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Google Cloud Auth | |
uses: google-github-actions/auth@8254fb75a33b976a221574d287e93919e6a36f70 # v2.1.6 | |
with: | |
project_id: "groovy-momentum-434802-g9" | |
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }} | |
- name: Run CronJob | |
run: go run cmd/cronjob/main.go |