Skip to content

Commit

Permalink
fix: update if statements in rollback workflow (#2512)
Browse files Browse the repository at this point in the history
* fix: update if statements in rollback workflow

* fix: fix negation in rollback workflow
  • Loading branch information
k80bowman committed Oct 12, 2023
1 parent ad5309d commit f6eaaab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rollback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
needs: determine-target-tag
name: Promote ${{ needs.determine-target-tag.outputs.targetTag }} to ${{ needs.determine-target-tag.outputs.isStableRelease && 'stable' || 'beta' }}
# if statement only here to protect our prod release while we test this functionality
if: !needs.determine-target-tag.outputs.isStableRelease
if: ${{ !fromJSON(needs.determine-target-tag.outputs.isStableRelease) }}
uses: ./.github/workflows/promote.yml
with:
version: ${{ needs.determine-target-tag.outputs.targetTag }}
Expand All @@ -45,7 +45,7 @@ jobs:
needs: [determine-target-tag, promote-previous-tag]
name: Invalidate Cloudfront cache
# if statement only here to protect our prod release while we test this functionality
if: !needs.determine-target-tag.outputs.isStableRelease
if: ${{ !fromJSON(needs.determine-target-tag.outputs.isStableRelease) }}
runs-on: ubuntu-latest
env:
CLOUDFRONT_DISTRIBUTION: ${{ secrets.CLOUDFRONT_DISTRIBUTION }}
Expand All @@ -64,7 +64,7 @@ jobs:
needs: determine-target-tag
name: Deprecate rollback version on NPM
# if statement only here to protect our prod release while we test this functionality
if: !needs.determine-target-tag.outputs.isStableRelease
if: ${{ !fromJSON(needs.determine-target-tag.outputs.isStableRelease) }}
# pub-hk-ubuntu-22.04- due to IP allow list issues with public repos: https://salesforce.quip.com/bu6UA0KImOxJ
runs-on: pub-hk-ubuntu-22.04-small
steps:
Expand All @@ -78,7 +78,7 @@ jobs:
rollback-brew:
name: Rollback brew release
needs: determine-target-tag
if: needs.determine-target-tag.outputs.isStableRelease
if: ${{ !fromJSON(needs.determine-target-tag.outputs.isStableRelease) }}
# pub-hk-ubuntu-22.04- due to IP allow list issues with public repos: https://salesforce.quip.com/bu6UA0KImOxJ
runs-on: pub-hk-ubuntu-22.04-small
environment: ReleaseHomebrew
Expand Down

0 comments on commit f6eaaab

Please sign in to comment.