From 9824dccacae9db54d1ed9979605f6d45506d549e Mon Sep 17 00:00:00 2001 From: CookSleep <151028412+CookSleep@users.noreply.github.com> Date: Thu, 18 Jul 2024 22:09:18 +0800 Subject: [PATCH] Update macos-build.yml --- .github/workflows/macos-build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/macos-build.yml b/.github/workflows/macos-build.yml index 2e8f07f..61d7183 100644 --- a/.github/workflows/macos-build.yml +++ b/.github/workflows/macos-build.yml @@ -54,15 +54,15 @@ jobs: }); release = response.data; } - core.setOutput('upload_url', release.upload_url); - core.setOutput('release_id', release.id); - + console.log(`UPLOAD_URL=${release.upload_url}`); + console.log(`RELEASE_ID=${release.id}`); + - name: Delete existing asset uses: actions/github-script@v6 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | - const releaseId = '${{ steps.get_release.outputs.release_id }}'; + const releaseId = process.env.RELEASE_ID; const { data: assets } = await github.rest.repos.listReleaseAssets({ owner: context.repo.owner, repo: context.repo.repo, @@ -82,7 +82,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.get_release.outputs.upload_url }} + upload_url: ${{ env.UPLOAD_URL }} asset_path: ./Project_Exporter-macOS.zip asset_name: Project_Exporter-macOS.zip asset_content_type: application/zip