From d9124ba52e469929d581c3a8166c9e938262f1ef Mon Sep 17 00:00:00 2001 From: Noel Ferreria Date: Thu, 25 Apr 2024 15:58:05 -0700 Subject: [PATCH] fix workflow and scripts to also not use deprecated set-output --- .github/scripts/check-release.sh | 4 ++-- .github/scripts/source-tag-sha.sh | 2 +- .github/scripts/verify-build.sh | 2 +- .github/workflows/build-release.yaml | 2 +- .github/workflows/major-release.yaml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/scripts/check-release.sh b/.github/scripts/check-release.sh index 1f43668..2572a71 100755 --- a/.github/scripts/check-release.sh +++ b/.github/scripts/check-release.sh @@ -16,7 +16,7 @@ exists=$( if [[ "$exists" == true ]]; then echo "Release ${release_version} already exists." - echo '::set-output name=release_exists::true' + echo "release_exists=true" >>$GITHUB_ENV else - echo '::set-output name=release_exists::false' + echo "release_exists=false" >>$GITHUB_ENV fi diff --git a/.github/scripts/source-tag-sha.sh b/.github/scripts/source-tag-sha.sh index 6b9119c..9156ed9 100755 --- a/.github/scripts/source-tag-sha.sh +++ b/.github/scripts/source-tag-sha.sh @@ -18,4 +18,4 @@ if [[ $sha == 'null' ]]; then fi echo "SHA for ${tag_name}: ${sha}" -echo "::set-output name=sha::$sha" +echo "sha=${sha}" >>$GITHUB_ENV diff --git a/.github/scripts/verify-build.sh b/.github/scripts/verify-build.sh index ae6b34f..614f1ae 100755 --- a/.github/scripts/verify-build.sh +++ b/.github/scripts/verify-build.sh @@ -6,7 +6,7 @@ git diff git status dist -s -## Raise error if more than 1 files changed in working dir +# Raise error if more than 1 files changed in working dir if [[ ! -z $(git status dist -s) ]]; then echo "Build at dist is outdated. Update build, push and try again." exit 1 diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 90e81ad..744fe03 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -46,7 +46,7 @@ jobs: run: | version=$(cat package.json | jq '.version' --raw-output) echo "Version: v${version}" - echo "::set-output name=version::v${version}" + echo "version=v${version}" >> $GITHUB_ENV - name: Check if release exists id: release-check diff --git a/.github/workflows/major-release.yaml b/.github/workflows/major-release.yaml index 73d56ed..8523eb4 100644 --- a/.github/workflows/major-release.yaml +++ b/.github/workflows/major-release.yaml @@ -37,7 +37,7 @@ jobs: echo "Tag name: ${TAG_NAME}" major_version=${TAG_NAME%.*.*} echo "Major Version: ${major_version}" - echo "::set-output name=major_version::$major_version" + echo "major_version=${major_version}" >> $GITHUB_ENV - name: Check if major version exists id: check-release