Skip to content

Commit

Permalink
Merge pull request #9871 from Expensify/Rory-FixPreDeploy
Browse files Browse the repository at this point in the history
[No QA] Add some debug output
  • Loading branch information
AndrewGable authored Jul 13, 2022
2 parents 578d96e + 9e8f022 commit 5b8651e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/preDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,18 @@ jobs:
id: shouldDeploy
run: echo "::set-output name=SHOULD_DEPLOY::${{ fromJSON(steps.hasCherryPickLabel.outputs.HAS_CP_LABEL) || (!fromJSON(steps.isStagingDeployLocked.outputs.IS_LOCKED) && !fromJSON(steps.isAutomatedPullRequest.outputs.IS_AUTOMATED_PR)) }}"

debugChooseDeployActions:
runs-on: ubuntu-latest
needs: chooseDeployActions
steps:
- if: ${{ fromJSON(needs.chooseDeployActions.outputs.SHOULD_DEPLOY) }}
run: echo 'This proves that the expected output is true and this is a GitHub bug'

- if: ${{ !fromJSON(needs.chooseDeployActions.outputs.SHOULD_DEPLOY) }}
run: echo 'This is weird'

- run: echo '${{ needs.chooseDeployActions.outputs.SHOULD_DEPLOY }}'

skipDeploy:
runs-on: ubuntu-latest
needs: chooseDeployActions
Expand All @@ -74,7 +86,7 @@ jobs:
createNewVersion:
needs: chooseDeployActions
if: ${{ needs.chooseDeployActions.outputs.SHOULD_DEPLOY == 'true' }}
if: ${{ fromJSON(needs.chooseDeployActions.outputs.SHOULD_DEPLOY) }}
uses: Expensify/App/.github/workflows/createNewVersion.yml@main
secrets: inherit

Expand Down

0 comments on commit 5b8651e

Please sign in to comment.