From 1b49cea6c117a232ccebdf40594aa0b43a12d14b Mon Sep 17 00:00:00 2001 From: Leighton Chen Date: Fri, 23 Feb 2024 09:20:02 -0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e3a3f185e..3d492a256 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,17 +45,17 @@ jobs: echo "PRIOR_VERSION_WHEN_PATCH=$prior_version_when_patch" >> $GITHUB_ENV - - run: | - if [[ -z $PRIOR_VERSION_WHEN_PATCH ]]; then - # not making a patch release - if ! grep --quiet "^## Version ${STABLE_VERSION}/${UNSTABLE_VERSION} " CHANGELOG.md; then - echo the pull request generated by prepare-release-branch.yml needs to be merged first - exit 1 - fi + - run: | + if [[ -z $PRIOR_VERSION_WHEN_PATCH ]]; then + # not making a patch release + if ! grep --quiet "^## Version ${STABLE_VERSION}/${UNSTABLE_VERSION} " CHANGELOG.md; then + echo the pull request generated by prepare-release-branch.yml needs to be merged first + exit 1 fi + fi - # check out main branch to verify there won't be problems with merging the change log - # at the end of this workflow + # check out main branch to verify there won't be problems with merging the change log + # at the end of this workflow - uses: actions/checkout@v3 with: ref: main