Skip to content

Commit

Permalink
Update macos-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CookSleep authored Jul 18, 2024
1 parent 39fa6a3 commit 9824dcc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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

0 comments on commit 9824dcc

Please sign in to comment.