Skip to content

Commit

Permalink
backing to checking if it should continue
Browse files Browse the repository at this point in the history
  • Loading branch information
nmanu1 committed Oct 30, 2023
1 parent 27c466c commit 1a61a35
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
jobs:
check-for-release:
runs-on: ubuntu-latest
# outputs:
# status: ${{ join(steps.*.conclusion) }}
outputs:
status: ${{ steps.check_versions.conclusion }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -24,12 +24,13 @@ jobs:
PACKAGE_VERSION="${PACKAGE_VERSION#v}"
PACKAGE_VERSION="${PACKAGE_VERSION%% *}"
echo version=${PACKAGE_VERSION} >> $GITHUB_OUTPUT
echo should_continue=1 >> ${GITHUB_OUTPUT}
else
gh run cancel ${{ github.run_id }}
gh run watch ${{ github.run_id }}
echo should_continue=0 >> ${GITHUB_OUTPUT}
fi
- name: check package versions
# if: steps.vars.outputs.should_continue == 1
id: check_versions
if: steps.vars.outputs.should_continue == 1
run: |
if node ./bump-versions.mjs ${{ steps.vars.outputs.version }} &> temp-bump-versions.txt
then
Expand Down Expand Up @@ -65,5 +66,5 @@ jobs:

run-tests:
needs: check-for-release
# if: !contains(needs.check-for-release.outputs.status, 'skipped')
if: needs.check-for-release.outputs.status === "success"
uses: ./.github/workflows/run-tests.yml

0 comments on commit 1a61a35

Please sign in to comment.