Skip to content

Commit

Permalink
Make all conditionals one line in GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Mar 16, 2021
1 parent b74286e commit 05d3685
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/preDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ jobs:
skipDeploy:
runs-on: ubuntu-latest
needs: chooseDeployActions
if: |
${{ needs.chooseDeployActions.outputs.isStagingDeployLocked == 'true' }} &&
${{ needs.chooseDeployActions.outputs.isVersionBumpPR == 'false' }}
if: ${{ needs.chooseDeployActions.outputs.isStagingDeployLocked == 'true' && needs.chooseDeployActions.outputs.isVersionBumpPR == 'false' }}

steps:
- name: Comment on deferred PR
Expand Down Expand Up @@ -140,9 +138,7 @@ jobs:
updateStaging:
runs-on: ubuntu-latest
needs: chooseDeployActions
if: |
${{ needs.chooseDeployActions.outputs.isVersionBumpPR == 'true' }} &&
${{ needs.chooseDeployActions.outputs.isStagingDeployLocked == 'false' }}
if: ${{ needs.chooseDeployActions.outputs.isVersionBumpPR == 'true' && needs.chooseDeployActions.outputs.isStagingDeployLocked == 'false' }}

steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
Expand Down

0 comments on commit 05d3685

Please sign in to comment.