Skip to content

Commit 596e4c8

Browse files
authored
fix(ci): force push when moving release tags (#239)
1 parent 8ff4ff5 commit 596e4c8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,13 @@ jobs:
5959
git tag -d "${TAG_NAME}"
6060
git push origin ":refs/tags/${TAG_NAME}" || true
6161
62+
# Configure git identity for creating annotated tags
63+
git config user.name "github-actions[bot]"
64+
git config user.email "github-actions[bot]@users.noreply.github.com"
65+
6266
# Create new tag at HEAD
6367
git tag -a "${TAG_NAME}" -m "${TAG_NAME}"
64-
git push origin "${TAG_NAME}"
68+
git push --force origin "${TAG_NAME}"
6569
6670
echo "Tag ${TAG_NAME} successfully moved to merge commit ${HEAD_COMMIT}"
6771
else

0 commit comments

Comments
 (0)