Skip to content

Commit

Permalink
testing prod pipes, temp wfl change
Browse files Browse the repository at this point in the history
  • Loading branch information
nevoodoo committed Jul 11, 2024
1 parent 4c467d4 commit da3e14e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/trigger_schema_updater.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,26 @@ jobs:
steps:
- uses: actions/checkout@v4

- id: "branch-check"
- id: 'branch-check'
name: Fail if branch is not main or dev
if: github.event_name == 'workflow_dispatch' && (github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev')
if: github.event_name == 'workflow_dispatch' && (github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/first-class-files-v3')
run: |
echo "This workflow should not be triggered with workflow_dispatch on a branch other than main or dev"
exit 1
- id: "google-cloud-auth"
name: "Authenticate to Google Cloud"
uses: "google-github-actions/auth@v2"
- id: 'google-cloud-auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v2'
with:
workload_identity_provider: "projects/774248915715/locations/global/workloadIdentityPools/github-pool/providers/github-provider"
service_account: "[email protected]"
workload_identity_provider: 'projects/774248915715/locations/global/workloadIdentityPools/github-pool/providers/github-provider'
service_account: '[email protected]'

- id: "google-cloud-sdk-setup"
name: "Set up Cloud SDK"
- id: 'google-cloud-sdk-setup'
name: 'Set up Cloud SDK'
uses: google-github-actions/setup-gcloud@v2

- id: "invoke-cloud-run"
name: "Invoke Cloud Run"
- id: 'invoke-cloud-run'
name: 'Invoke Cloud Run'
run: |
CLOUD_RUN_URL=$(gcloud run services describe schema-updater --region australia-southeast1 --format 'value(status.url)')/execute-liquibase?environment=${{ github.event.inputs.environment }}
TOKEN=$(gcloud auth print-identity-token --impersonate-service-account="[email protected]" --audiences="$CLOUD_RUN_URL" --include-email)
Expand Down

0 comments on commit da3e14e

Please sign in to comment.