mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-22 02:23:47 +08:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
0f98ab44f5 | ||
|
58f69047b6 |
@ -29,3 +29,9 @@ inputs:
|
|||||||
commitMessage:
|
commitMessage:
|
||||||
description: 'Set custom commit message'
|
description: 'Set custom commit message'
|
||||||
required: false
|
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}"
|
git push origin "${remote_branch}"
|
||||||
fi
|
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"
|
print_info "${GITHUB_SHA} was successfully deployed"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user