Skip to content

Commit f0a1d25

Browse files
committed
[auto] Update compiled version
1 parent c902408 commit f0a1d25

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/entrypoint.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ remove() {
3131
if [ -n "$INPUT_REMOVE" ]; then git rm $INPUT_REMOVE; fi
3232
}
3333

34+
tag() {
35+
if [ -n "$INPUT_TAG" ]; then git tag $INPUT_TAG; fi
36+
}
37+
3438
# This is needed to make the check work for untracked files
3539
echo "Staging files..."
3640
add
@@ -68,8 +72,11 @@ if ! git diff --cached --quiet --exit-code; then
6872
echo "Creating commit..."
6973
git commit -m "$INPUT_MESSAGE" --author="$INPUT_AUTHOR_NAME <$INPUT_AUTHOR_EMAIL>"
7074

75+
echo "Tagging commit..."
76+
tag
77+
7178
echo "Pushing to repo..."
72-
git push --set-upstream origin "$INPUT_REF"
79+
git push --set-upstream origin --tags "$INPUT_REF"
7380

7481
echo "::endgroup::"
7582
echo "Task completed."

0 commit comments

Comments
 (0)