Skip to content

Commit 1e33cf2

Browse files
committed
bugfix(ci): fix pushing tags when no tag was actually pushed
1 parent be50564 commit 1e33cf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/codetracer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@ jobs:
429429
430430
git remote set-url origin https://x-access-token:${{ secrets.CODETRACER_PUSH_GITHUB_TOKEN }}@github.com/metacraft-labs/codetracer
431431
432-
(git tag -a "$YEAR.$MONTH.$BUILD" -m "Release $YEAR.$MONTH.$BUILD" && echo "tag=$YEAR.$MONTH.$BUILD" >> $GITHUB_OUTPUT) || echo "Tag already exists"
433-
git push origin "$YEAR.$MONTH.$BUILD" || echo "Tag already exists"
432+
git tag -a "$YEAR.$MONTH.$BUILD" -m "Release $YEAR.$MONTH.$BUILD" || echo "Tag already exists"
433+
(git push origin "$YEAR.$MONTH.$BUILD" && echo "tag=$YEAR.$MONTH.$BUILD" >> $GITHUB_OUTPUT) || echo "Tag already exists"
434434
435435
create-release:
436436
runs-on: [ self-hosted, nixos ]

0 commit comments

Comments
 (0)