feat: support GHES step output management

This commit is contained in:
Romain Lespinasse
2022-10-31 19:45:56 +01:00
committed by GitHub
parent 3b1b863e54
commit c90ba7007e

View File

@@ -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
{