diff --git a/shortify.sh b/shortify.sh index 8c51e02..8daf1e9 100755 --- a/shortify.sh +++ b/shortify.sh @@ -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 {