From 0609ec25251faec18a5e1af9ed85455fa0601904 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Fri, 4 Nov 2022 10:38:22 +0700 Subject: [PATCH] Fixed `create-release-branch` failing with non-core tags - the create-release-branch workflow works by getting the most recent tag, bumping it and using that to create the new tag - now we've moved Portal into the monorepo, we've got two different types of flags, but the Portal ones aren't valid semver so the workflow fails if the most recent tag is one for Portal - this fixes that by ensuring we only fetch tags matching the pattern we use for tagging Ghost --- .github/workflows/create-release-branch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-release-branch.yml b/.github/workflows/create-release-branch.yml index d49390dd25..f27c786ec6 100644 --- a/.github/workflows/create-release-branch.yml +++ b/.github/workflows/create-release-branch.yml @@ -43,7 +43,7 @@ jobs: - run: | echo "CURRENT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV - echo "NEW_VERSION=$(semver bump ${{ inputs.bump-type }} $(git describe --tags --abbrev=0))" >> $GITHUB_ENV + echo "NEW_VERSION=$(semver bump ${{ inputs.bump-type }} $(git describe --tags --abbrev=0 --match=\"v*\"))" >> $GITHUB_ENV - name: Create branch uses: actions/github-script@v6