Skip to content

Commit

Permalink
fix: use environment file to manage outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
rlespinasse authored Oct 15, 2022
1 parent 641a3e9 commit 511e402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drawio-export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 511e402

Please sign in to comment.