From 5a3c42435cf6e1e98f20cb8b6a2f93d65228f731 Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Fri, 12 Apr 2024 15:44:02 +0200 Subject: [PATCH] fix: Override release tag if it already exists --- .github/workflows/release.yml | 1 + ci/scripts/bump-and-tag.bash | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0717f9080..86b21b5ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,6 +60,7 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ steps.create-release-branch.outputs.branch }} + token: ${{ secrets.BOT_TOKEN_WORKFLOW }} - name: Bump and tag project run: bash ci/scripts/bump-and-tag.bash diff --git a/ci/scripts/bump-and-tag.bash b/ci/scripts/bump-and-tag.bash index a80dd5563..4288a9f50 100644 --- a/ci/scripts/bump-and-tag.bash +++ b/ci/scripts/bump-and-tag.bash @@ -64,8 +64,8 @@ if [[ "$bump_deps_pattern" != '' ]]; then fi fi -git tag "$version" -m "v$version" +git tag --force "$version" -m "v$version" git log -10 git show-ref --tags git push origin -git push origin "$version" +git push --force origin "$version"