Skip to content

Commit f9fe4cd

Browse files
committed
Set output
1 parent 474b0a4 commit f9fe4cd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/actions/check_if_latest_release/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ runs:
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."

.github/workflows/deploy_latest_release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,23 @@ on:
1111
jobs:
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
@@ -62,9 +65,9 @@ jobs:
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

0 commit comments

Comments
 (0)