diff --git a/.github/scripts/check-release.sh b/.github/scripts/check-release.sh index f43bc17..cad6161 100755 --- a/.github/scripts/check-release.sh +++ b/.github/scripts/check-release.sh @@ -16,8 +16,8 @@ exists=$( if [[ "$exists" == true ]]; then echo "Release ${release_version} already exists." - echo "release_exists=true" >>$GITHUB_OUTPUTS + echo "release_exists=true" >>"$GITHUB_OUTPUT" else - echo "release_exists=false" >>$GITHUB_OUTPUTS + echo "release_exists=false" >>"$GITHUB_OUTPUT" fi diff --git a/.github/scripts/source-tag-sha.sh b/.github/scripts/source-tag-sha.sh index 9156ed9..522ed2d 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 "sha=${sha}" >>$GITHUB_ENV +echo "sha=${sha}" >>"$GITHUB_OUTPUT" diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 873a0ce..822a6d3 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 "version=v${version}" >> $GITHUB_ENV + echo "version=v${version}" >> "$GITHUB_OUTPUT" - name: Check if release exists id: release-check @@ -71,7 +71,7 @@ jobs: if: needs.release-check.outputs.release_exists == 'false' steps: - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: name: ${{ needs.release-check.outputs.version }} tag_name: ${{ needs.release-check.outputs.version }}