Skip to content

Commit 83761c7

Browse files
committed
Hopefully fix wrong commit getting tagged
1 parent f0a1d25 commit 83761c7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/entrypoint.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ remove() {
3232
}
3333

3434
tag() {
35-
if [ -n "$INPUT_TAG" ]; then git tag $INPUT_TAG; fi
35+
if [ -n "$INPUT_TAG" ]; then
36+
git tag $INPUT_TAG
37+
git push origin refs/tags/$INPUT_TAG
38+
fi
3639
}
3740

3841
# This is needed to make the check work for untracked files
@@ -76,7 +79,7 @@ if ! git diff --cached --quiet --exit-code; then
7679
tag
7780

7881
echo "Pushing to repo..."
79-
git push --set-upstream origin --tags "$INPUT_REF"
82+
git push --set-upstream origin "$INPUT_REF"
8083

8184
echo "::endgroup::"
8285
echo "Task completed."

0 commit comments

Comments
 (0)