From ef2a3098c427b79304eb0b9b20f4c8a32aba78ea Mon Sep 17 00:00:00 2001 From: galargh Date: Tue, 17 Sep 2024 15:16:33 +0200 Subject: [PATCH] ci: fix the github release url for macos --- .github/workflows/release-check.yml | 1 + rust/scripts/publish-release.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-check.yml b/.github/workflows/release-check.yml index 7c1bba46..4b798414 100644 --- a/.github/workflows/release-check.yml +++ b/.github/workflows/release-check.yml @@ -70,6 +70,7 @@ jobs: name: Build and publish the universal standard release env: GITHUB_TOKEN: ${{ github.token }} + GITHUB_RELEASE_URL: ${{ github.api_url }}/repos/${{ github.repository }}/releases/${{ fromJSON(needs.release-check.outputs.json)['version.json'].id }} run: | REPOSITORY_NAME=${GITHUB_REPOSITORY##*/} diff --git a/rust/scripts/publish-release.sh b/rust/scripts/publish-release.sh index 4c18ff3b..231cd7e5 100755 --- a/rust/scripts/publish-release.sh +++ b/rust/scripts/publish-release.sh @@ -45,7 +45,7 @@ main() { exit 1 fi - __release_target_asset=`echo $__release_response | jq -r ".assets | .[] | select(.name == \"$release_target\")"` + __release_target_asset=`echo $__release_response | jq -r ".assets | .[] | select(.name == \"$__release_target\")"` if [ -n "$__release_target_asset" ]; then (>&2 echo "[publish-release/main] $__release_target_asset already exists, deleting")