We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c902408 commit f0a1d25Copy full SHA for f0a1d25
lib/entrypoint.sh
@@ -31,6 +31,10 @@ remove() {
31
if [ -n "$INPUT_REMOVE" ]; then git rm $INPUT_REMOVE; fi
32
}
33
34
+tag() {
35
+ if [ -n "$INPUT_TAG" ]; then git tag $INPUT_TAG; fi
36
+}
37
+
38
# This is needed to make the check work for untracked files
39
echo "Staging files..."
40
add
@@ -68,8 +72,11 @@ if ! git diff --cached --quiet --exit-code; then
68
72
echo "Creating commit..."
69
73
git commit -m "$INPUT_MESSAGE" --author="$INPUT_AUTHOR_NAME <$INPUT_AUTHOR_EMAIL>"
70
74
75
+ echo "Tagging commit..."
76
+ tag
77
71
78
echo "Pushing to repo..."
- git push --set-upstream origin "$INPUT_REF"
79
+ git push --set-upstream origin --tags "$INPUT_REF"
80
81
echo "::endgroup::"
82
echo "Task completed."
0 commit comments