From 8ad9e2bdd6b40476dcf81d9da4aff93a9342ccdb Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Tue, 1 Nov 2022 16:50:25 -0700 Subject: [PATCH] Fix bug where changelog is always slightly out of date on release tags (#1631) * fix issue where changelog is always slightly out of date on release tags * fix tag step running all the time per CR * update tag name to use more clear variable name --- .github/workflows/changelog.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yaml index c3f8037f..f8b4eca1 100644 --- a/.github/workflows/changelog.yaml +++ b/.github/workflows/changelog.yaml @@ -152,6 +152,14 @@ jobs: git commit -m "Update changelog [ci skip]" git push origin "$BRANCH" + - name: Update tag to include changelog + if: startsWith(env.GITHUB_REF, 'refs/tags/') + run: | + # This is a tag build (releases and prereleases) + # update the tag to include the changelog + git tag -fam "$GITHUB_REF_NAME" "$GITHUB_REF_NAME" + git push --tags --force + - name: Merge to Release branch if: env.FULL_RELEASE == 'true' run: |