mirror of
https://github.com/rlespinasse/shortify-git-revision.git
synced 2026-06-11 16:42:45 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c90ba7007e | ||
|
|
3b1b863e54 |
@@ -45,8 +45,13 @@ elif [ "${INPUT_CONTINUE_ON_ERROR}" == "false" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${SHORT_PUBLICATION}" == "true" ]; then
|
if [ "${SHORT_PUBLICATION}" == "true" ]; then
|
||||||
echo "::set-output name=revision::${REVISION}"
|
if [ -f "$GITHUB_OUTPUT" ]; then
|
||||||
echo "::set-output name=short::${SHORT_VALUE}"
|
echo "revision=${REVISION}" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "short=${SHORT_VALUE}" >> "$GITHUB_OUTPUT"
|
||||||
|
else
|
||||||
|
echo "::set-output name=revision::${REVISION}"
|
||||||
|
echo "::set-output name=short::${SHORT_VALUE}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${INPUT_PUBLISH_ENV}" == "true" ]; then
|
if [ "${INPUT_PUBLISH_ENV}" == "true" ]; then
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user