Skip to content

Commit

Permalink
Pass in release ID as envar
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymholt committed Oct 23, 2023
1 parent f474cc1 commit 334742d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ jobs:
files: assets.zip
- name: Comment on PRs with link to release they are included in
uses: actions/github-script@v6
env:
RELEASE_ID: ${{ steps.create-release.outputs.id }}
with:
script: |
console.log(`Fetching release_id: ${steps.create-release.outputs.id} ...`)
const release = await github.rest.repos.getRelease({
release_id: '${{ steps.create-release.outputs.id }}',
release_id: process.env.RELEASE_ID,
owner: context.repo.owner,
repo: context.repo.repo
});
Expand Down

0 comments on commit 334742d

Please sign in to comment.