mirror of
https://github.com/rlespinasse/shortify-git-revision.git
synced 2026-05-20 05:32:26 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c90ba7007e |
@@ -45,8 +45,13 @@ elif [ "${INPUT_CONTINUE_ON_ERROR}" == "false" ]; then
|
||||
fi
|
||||
|
||||
if [ "${SHORT_PUBLICATION}" == "true" ]; then
|
||||
echo "revision=${REVISION}" >> "$GITHUB_OUTPUT"
|
||||
echo "short=${SHORT_VALUE}" >> "$GITHUB_OUTPUT"
|
||||
if [ -f "$GITHUB_OUTPUT" ]; then
|
||||
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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user