Skip to content

Commit

Permalink
non-release
Browse files Browse the repository at this point in the history
don't fail, but don't continue. also cancel and exit early?
  • Loading branch information
nmanu1 committed Oct 30, 2023
1 parent a61ccad commit 3d01937
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
jobs:
check-for-release:
runs-on: ubuntu-latest
# outputs:
# status: ${{ join(steps.*.conclusion) }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -20,10 +22,13 @@ jobs:
PACKAGE_VERSION="${PACKAGE_VERSION#v}"
PACKAGE_VERSION="${PACKAGE_VERSION%% *}"
echo version=${PACKAGE_VERSION} >> $GITHUB_OUTPUT
exit 0
echo should_continue=1 >> ${GITHUB_OUTPUT}
else
echo should_continue=0 >> ${GITHUB_OUTPUT}
gh run cancel vars
fi
exit 1
- name: check package 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 @@ -59,4 +64,5 @@ jobs:

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

0 comments on commit 3d01937

Please sign in to comment.