Skip to content

Commit 8f2d7e3

Browse files
committed
fix: tag condition
1 parent 54b07ed commit 8f2d7e3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/update.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,10 @@ jobs:
201201
- name: Add Tag
202202
run: |
203203
cd repo
204-
git tag 4.3 -f
205-
git push --tag
204+
if ! git ls-remote --tags origin | grep -q "refs/tags/$DOC_VERSION"; then
205+
git tag $DOC_VERSION
206+
git push --tag
207+
fi
206208
207209
- name: Release
208210
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)