Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f98ab44f5 | ||
|
|
58f69047b6 |
@@ -29,3 +29,9 @@ inputs:
|
||||
commitMessage:
|
||||
description: 'Set custom commit message'
|
||||
required: false
|
||||
tagName:
|
||||
description: 'Set tag name'
|
||||
required: false
|
||||
tagMessage:
|
||||
description: 'Set tag message'
|
||||
required: false
|
||||
|
||||
@@ -142,4 +142,15 @@ else
|
||||
git push origin "${remote_branch}"
|
||||
fi
|
||||
|
||||
if [[ -n "${INPUT_TAGNAME}" ]]; then
|
||||
print_info "Tag name: ${INPUT_TAGNAME}"
|
||||
if [[ -n "${INPUT_TAGMESSAGE}" ]]; then
|
||||
print_info "Tag message: ${INPUT_TAGMESSAGE}"
|
||||
git tag "${INPUT_TAGNAME}" -m "${INPUT_TAGMESSAGE}"
|
||||
else
|
||||
git tag "${INPUT_TAGNAME}"
|
||||
fi
|
||||
git push origin "${INPUT_TAGNAME}"
|
||||
fi
|
||||
|
||||
print_info "${GITHUB_SHA} was successfully deployed"
|
||||
|
||||
Reference in New Issue
Block a user