Browse Source

Add condition to preview to run only on success

The preview workflow doesn't run on success but on completion of the workflow before it. This change ensures that the workflow won't run on a failure or partial success of the PR Release workflow.
pull/4676/head
Vibhav Bobade 2 years ago committed by GitHub
parent
commit
cf0fae1c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .github/workflows/uffizzi-preview.yml

3
.github/workflows/uffizzi-preview.yml

@ -11,6 +11,7 @@ jobs:
cache-compose-file:
name: Cache Compose File
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
outputs:
compose-file-cache-key: ${{ env.COMPOSE_FILE_HASH }}
pr-number: ${{ env.PR_NUMBER }}
@ -85,4 +86,4 @@ jobs:
permissions:
contents: read
pull-requests: write
id-token: write
id-token: write

Loading…
Cancel
Save