Fetch all roles #1250
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: Fetch all roles | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 12 * * *" | |
jobs: | |
fetch: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: 'write' | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.TOKEN }} | |
- id: 'auth' | |
name: 'Authenticate to Google Cloud' | |
uses: 'google-github-actions/[email protected]' | |
with: | |
workload_identity_provider: 'projects/376681942354/locations/global/workloadIdentityPools/github-identity-pool/providers/github-oidc-provider' | |
service_account: '[email protected]' | |
# Install gcloud, `setup-gcloud` automatically picks up authentication from `auth`. | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v0' | |
- name: 'Fetch all IAM Roles' | |
run: ./fetch-all-roles.sh | |
- name: 'Commit, Tag, and Release' | |
run: ./.github/commit-and-release.sh | |
env: | |
TOKEN: ${{ secrets.TOKEN }} | |
NAME: ${{ secrets.NAME }} | |
EMAIL: ${{ secrets.EMAIL }} |