Skip to content

Commit

Permalink
use outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Dec 13, 2023
1 parent 1120bea commit 4eb8c77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/get-release-notes/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ inputs:
token:
required: true

outputs:
release-notes:
value: ${{ steps.get_release_notes.outputs.RELEASE_NOTES }}

runs:
using: composite

Expand All @@ -30,7 +34,8 @@ runs:
state: 'all',
head: `${process.env.REPO_OWNER}:release/${process.env.VERSION}`,
});
core.exportVariable('RELEASE_NOTES', pulls[0].body)
core.setOutput('RELEASE_NOTES', pulls[0].body);
core.exportVariable('RELEASE_NOTES', pulls[0].body);
env:
GITHUB_TOKEN: ${{ inputs.token }}
REPO_OWNER: ${{ inputs.repo_owner }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
- run: echo "Test"
env:
test: ${{ steps.tag_exists.outputs.exists }}
test2: ${{ steps.get_release_notes.outputs.release-notes }}

# If the tag already exists, exit with an error
- if: steps.tag_exists.outputs.exists == 'true'
Expand Down

0 comments on commit 4eb8c77

Please sign in to comment.