From 389dd8ff293f219ef6ca8d6d795862adc8d51862 Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Mon, 31 Oct 2022 20:38:51 -0700 Subject: [PATCH] fix tag step running all the time per CR --- .github/workflows/changelog.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yaml index 3d3f3060..a7b4f926 100644 --- a/.github/workflows/changelog.yaml +++ b/.github/workflows/changelog.yaml @@ -151,6 +151,11 @@ jobs: git add "$FILENAME" 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##*/}" "${GITHUB_REF##*/}" git push --tags --force