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
This commit is contained in:
Daniel Lockyer 2022-11-04 10:38:22 +07:00
parent 7b5ce01eff
commit 0609ec2525
No known key found for this signature in database

View File

@ -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