diff --git a/.github/workflows/deploy-pr-preview.yaml b/.github/workflows/deploy-pr-preview.yaml index a9a861912..3150fbefa 100644 --- a/.github/workflows/deploy-pr-preview.yaml +++ b/.github/workflows/deploy-pr-preview.yaml @@ -10,7 +10,8 @@ env: PR_PREVIEW_SUBDOMAIN: pr-${{github.event.pull_request.number}}-preview PR_PREVIEW_DEPLOY_LOG_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} PR_PREVIEW_BUCKET: s3://khpreview.dea.ga.gov.au - PR_PREVIEW_SKIP_COMMAND: "[no preview]" + PR_PREVIEW_SKIP_COMMAND_1: "[no preview]" + PR_PREVIEW_SKIP_COMMAND_2: "[skip preview]" permissions: id-token: write # For requesting the JWT used by OIDC Authentication @@ -21,9 +22,12 @@ jobs: pr-preview: runs-on: ubuntu-latest if: | - !contains(github.event.head_commit.message, '${{ env.PR_PREVIEW_SKIP_COMMAND }}') && - !contains(github.event.pull_request.title, '${{ env.PR_PREVIEW_SKIP_COMMAND }}') && - !contains(github.event.pull_request.body, '${{ env.PR_PREVIEW_SKIP_COMMAND }}') + !contains(github.event.head_commit.message, '${{ env.PR_PREVIEW_SKIP_COMMAND_1 }}') && + !contains(github.event.head_commit.message, '${{ env.PR_PREVIEW_SKIP_COMMAND_2 }}') && + !contains(github.event.pull_request.title, '${{ env.PR_PREVIEW_SKIP_COMMAND_1 }}') && + !contains(github.event.pull_request.title, '${{ env.PR_PREVIEW_SKIP_COMMAND_2 }}') && + !contains(github.event.pull_request.body, '${{ env.PR_PREVIEW_SKIP_COMMAND_1 }}') && + !contains(github.event.pull_request.body, '${{ env.PR_PREVIEW_SKIP_COMMAND_2 }}') strategy: matrix: