From 5fe1a9b8af1b96c4b83720baf6d951b45c4e6bac Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Mon, 16 Jan 2023 18:41:03 +0000 Subject: [PATCH] Update mergeback workflow --- .github/workflows/post-release-mergeback.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/post-release-mergeback.yml b/.github/workflows/post-release-mergeback.yml index a2c320424..453b02c0b 100644 --- a/.github/workflows/post-release-mergeback.yml +++ b/.github/workflows/post-release-mergeback.yml @@ -1,8 +1,9 @@ -# This workflow runs after a release of the action. For v2 releases, it merges any changes from the -# release back into the main branch. Typically, this is just a single commit that updates the -# changelog. For v2 and v1 releases, it then (a) tags the merge commit on the release branch that -# represents the new release with an `vx.y.z` tag and (b) updates the `vx` tag to refer to this -# commit. +# This workflow runs after a release of the action. It: +# 1. Merges any changes from the release back into the main branch. Typically, this is just a single +# commit that updates the changelog. +# 2. Tags the merge commit on the release branch that represents the new release with an `v2.x.y` +# tag +# 3. Updates the `v2` tag to refer to this merge commit. name: Tag release and merge back on: @@ -15,7 +16,6 @@ on: push: branches: - - releases/v1 - releases/v2 jobs: @@ -105,7 +105,7 @@ jobs: git push origin --atomic --force refs/tags/"${VERSION}" refs/tags/"${major_version_tag}" - name: Create mergeback branch - if: steps.check.outputs.exists != 'true' && contains(github.ref, 'releases/v2') + if: steps.check.outputs.exists != 'true' env: VERSION: "${{ steps.getVersion.outputs.version }}" NEW_BRANCH: "${{ steps.getVersion.outputs.newBranch }}"