From b0d03771cb471a3a1600319018c3f4f104ecf373 Mon Sep 17 00:00:00 2001 From: Jongwoo Han Date: Wed, 28 Feb 2024 00:34:48 +0900 Subject: [PATCH] chore: Replace deprecated command with environment file (#24063) --- scripts/tag_latest_release.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/tag_latest_release.sh b/scripts/tag_latest_release.sh index 58f192039ba80..170cd96413afa 100755 --- a/scripts/tag_latest_release.sh +++ b/scripts/tag_latest_release.sh @@ -98,13 +98,13 @@ done if [ -z "${GITHUB_TAG_NAME}" ]; then echo "Missing tag parameter, usage: ./scripts/tag_latest_release.sh " - echo "::set-output name=SKIP_TAG::true" + echo "SKIP_TAG=true" >>$GITHUB_OUTPUT exit 1 fi if [ -z "$(git_show_ref)" ]; then echo "The tag ${GITHUB_TAG_NAME} does not exist. Please use a different tag." - echo "::set-output name=SKIP_TAG::true" + echo "SKIP_TAG=true" >>$GITHUB_OUTPUT exit 0 fi @@ -112,7 +112,7 @@ fi if ! [[ ${GITHUB_TAG_NAME} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] then echo "This tag ${GITHUB_TAG_NAME} is not a valid release version. Not tagging." - echo "::set-output name=SKIP_TAG::true" + echo "SKIP_TAG=true" >>$GITHUB_OUTPUT exit 1 fi @@ -177,14 +177,14 @@ done # Determine the result based on the comparison if [[ -z "$compare_result" ]]; then echo "Versions are equal" - echo "::set-output name=SKIP_TAG::true" + echo "SKIP_TAG=true" >>$GITHUB_OUTPUT elif [[ "$compare_result" == "greater" ]]; then echo "This release tag ${GITHUB_TAG_NAME} is newer than the latest." - echo "::set-output name=SKIP_TAG::false" + echo "SKIP_TAG=false" >>$GITHUB_OUTPUT # Add other actions you want to perform for a newer version elif [[ "$compare_result" == "lesser" ]]; then echo "This release tag ${GITHUB_TAG_NAME} is older than the latest." echo "This release tag ${GITHUB_TAG_NAME} is not the latest. Not tagging." # if you've gotten this far, then we don't want to run any tags in the next step - echo "::set-output name=SKIP_TAG::true" + echo "SKIP_TAG=true" >>$GITHUB_OUTPUT fi