From a61ccad0804563780f2e2dbff37189317d031fbc Mon Sep 17 00:00:00 2001 From: nmanu1 Date: Mon, 30 Oct 2023 14:40:28 -0400 Subject: [PATCH] non-release clean up and try again --- .github/workflows/release.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cba5cabf6..e0098d486 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,6 @@ on: jobs: check-for-release: runs-on: ubuntu-latest - # if: startsWith(github.event.head_commit.message, 'simple') steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -15,18 +14,15 @@ jobs: run: | COMMIT_MSG="${{ github.event.head_commit.message }}" COMMIT_TITLE="${COMMIT_MSG%%$'\n'*}" - echo "${COMMIT_TITLE}" if [[ $COMMIT_TITLE =~ ^(v|Version )[0-9]+\.[0-9]+\.[0-9]+( \(#[0-9]+\))?$ ]] then - echo "matched regex" PACKAGE_VERSION="${COMMIT_TITLE#Version }" PACKAGE_VERSION="${PACKAGE_VERSION#v}" PACKAGE_VERSION="${PACKAGE_VERSION%% *}" - echo "${PACKAGE_VERSION}" echo version=${PACKAGE_VERSION} >> $GITHUB_OUTPUT - else - echo "did not match" + exit 0 fi + exit 1 - name: check package versions run: | if node ./bump-versions.mjs ${{ steps.vars.outputs.version }} &> temp-bump-versions.txt