File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
actions/check_if_latest_release Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1818
1919 if [ "$LATEST_TAG_NAME" == "$RELEASE_EVENT_TAG_NAME" ]; then
2020 echo "We are releasing the latest tag. Continuing deployment workflow."
21- echo "IS_LATEST_RELEASE=true" >> $GITHUB_ENV
21+ echo "IS_LATEST_RELEASE=true" >> $GITHUB_OUTPUT
2222 exit 0
2323 else
2424 echo "We are not releasing the latest tag. Stopping deployment workflow."
Original file line number Diff line number Diff line change 1111jobs :
1212 check-latest-release :
1313 runs-on : ubuntu-latest
14+ outputs :
15+ IS_LATEST_RELEASE : ${{ steps.checkRelease.outputs.IS_LATEST_RELEASE }}
1416 steps :
1517 - name : Checkout
1618 uses : actions/checkout@v4
1719
1820 - name : Check if latest release
21+ id : checkRelease
1922 uses : ./.github/actions/check_if_latest_release
2023 with :
2124 token : ${{ secrets.GITHUB_TOKEN }}
2225
2326 # Re-enable this when the PR is ready to be merged
2427 # deploy-bug-bounty:
25- # if: env.IS_LATEST_RELEASE == 'true'
2628 # needs: check-latest-release
2729 # runs-on: ubuntu-latest
30+ # if: ${{ needs.check-latest-release.outputs.IS_LATEST_RELEASE}} == 'true'
2831 # steps:
2932 # - name: Checkout
3033 # uses: actions/checkout@v4
6265 # FLAGS: --cloud-origin https://cloud-testing.mobify-staging.com -c ~/.mobify --wait
6366
6467 deploy-demo-site :
65- if : env.IS_LATEST_RELEASE == 'true'
6668 needs : check-latest-release
6769 runs-on : ubuntu-latest
70+ if : ${{ needs.check-latest-release.outputs.IS_LATEST_RELEASE}} == 'true'
6871 steps :
6972 - name : Checkout
7073 uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments