Skip to content

Commit

Permalink
fix: replace depricated set-output command
Browse files Browse the repository at this point in the history
  • Loading branch information
rickstaa committed Mar 17, 2023
1 parent 351c375 commit bb13263
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ NEXT_VERSION="$(bump ${input_bump_level})" || true

if [[ -z "${CURRENT_VERSION}" ]]; then
echo "[action-get-semver] Current version tag not found."
echo "::set-output name=error::true"
echo "error=true" >> "${GITHUB_OUTPUT}"
if [[ "${INPUT_FRAIL}" = 'true' ]]; then
exit 1
fi
Expand All @@ -42,7 +42,7 @@ if [[ -z "${CURRENT_VERSION}" ]]; then
;;
esac
else
echo "::set-output name=error::false"
echo "error=false" >> "${GITHUB_OUTPUT}"
fi

if [ -z "${NEXT_VERSION}" ]; then
Expand All @@ -54,5 +54,5 @@ if [ "${INPUT_VERBOSE}" == "true" ]; then
echo "[action-get-semver] Current_version: ${CURRENT_VERSION}"
echo "[action-get-semver] Next_version: ${NEXT_VERSION}"
fi
echo "::set-output name=current_version::${CURRENT_VERSION}"
echo "::set-output name=next_version::${NEXT_VERSION}"
echo "current_version=${CURRENT_VERSION}" >> "${GITHUB_OUTPUT}"
echo "next_version=${NEXT_VERSION}" >> "${GITHUB_OUTPUT}"

0 comments on commit bb13263

Please sign in to comment.