From 511e402568fb9e04f45e4a804bc4540314c64258 Mon Sep 17 00:00:00 2001 From: Romain Lespinasse Date: Sat, 15 Oct 2022 21:08:30 +0200 Subject: [PATCH] fix: use environment file to manage outputs --- drawio-export.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drawio-export.sh b/drawio-export.sh index eabb717..7138d18 100755 --- a/drawio-export.sh +++ b/drawio-export.sh @@ -46,7 +46,7 @@ if [ "${INPUT_ACTION_MODE}" != "all" ]; then # but 'actions/checkout' make a shallow clone by default if [ "$(git rev-parse --is-shallow-repository)" == "true" ]; then error_message="This is a shallow git repository." - echo "::set-output name=error_message::${error_message}" + echo "error_message=${error_message}" >>"$GITHUB_OUTPUT" echo "::error ::${error_message}" echo "Add 'fetch-depth: 0' to 'actions/checkout' step to use the '${INPUT_ACTION_MODE}' mode." exit 1 @@ -116,7 +116,7 @@ echo "::debug::< error message : ${error_message}" # Try to calculate the correct reference to use echo "::debug::Calculating reference to use" if [ "${action_mode}" == "none" ]; then - echo "::set-output name=error_message::${error_message}" + echo "error_message=${error_message}" >>"$GITHUB_OUTPUT" echo "::error ::${error_message}" echo "::error ::The choosen action mode '${INPUT_ACTION_MODE}' can't be used. Consider switching to 'auto' (default value)." exit 1