Hopefully fix wrong commit getting tagged
This commit is contained in:
@@ -32,7 +32,10 @@ remove() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tag() {
|
tag() {
|
||||||
if [ -n "$INPUT_TAG" ]; then git tag $INPUT_TAG; fi
|
if [ -n "$INPUT_TAG" ]; then
|
||||||
|
git tag $INPUT_TAG
|
||||||
|
git push origin refs/tags/$INPUT_TAG
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# This is needed to make the check work for untracked files
|
# This is needed to make the check work for untracked files
|
||||||
@@ -76,7 +79,7 @@ if ! git diff --cached --quiet --exit-code; then
|
|||||||
tag
|
tag
|
||||||
|
|
||||||
echo "Pushing to repo..."
|
echo "Pushing to repo..."
|
||||||
git push --set-upstream origin --tags "$INPUT_REF"
|
git push --set-upstream origin "$INPUT_REF"
|
||||||
|
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
echo "Task completed."
|
echo "Task completed."
|
||||||
|
|||||||
Reference in New Issue
Block a user