Skip to content

Commit

Permalink
Added a second variation of the command
Browse files Browse the repository at this point in the history
  • Loading branch information
benji-glitsos-ga committed Mar 18, 2024
1 parent 8c6691a commit a1b3d21
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/deploy-pr-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit a1b3d21

Please sign in to comment.