Skip to content

Commit eda066e

Browse files
Use outputs for capturing release-notes (#551)
1 parent 1b5cfd2 commit eda066e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/actions/get-release-notes/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ inputs:
1515
token:
1616
required: true
1717

18+
outputs:
19+
release-notes:
20+
value: ${{ steps.get_release_notes.outputs.RELEASE_NOTES }}
21+
1822
runs:
1923
using: composite
2024

@@ -30,7 +34,7 @@ runs:
3034
state: 'all',
3135
head: `${process.env.REPO_OWNER}:release/${process.env.VERSION}`,
3236
});
33-
core.exportVariable('RELEASE_NOTES', pulls[0].body)
37+
core.setOutput('RELEASE_NOTES', pulls[0].body);
3438
env:
3539
GITHUB_TOKEN: ${{ inputs.token }}
3640
REPO_OWNER: ${{ inputs.repo_owner }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
with:
7373
token: ${{ secrets.GITHUB_TOKEN }}
7474
name: ${{ steps.get_version.outputs.version }}
75-
body: ${{ env.RELEASE_NOTES }}
75+
body: ${{ steps.get_release_notes.outputs.release-notes }}
7676
tag: ${{ steps.get_version.outputs.version }}
7777
commit: ${{ github.sha }}
7878
prerelease: ${{ steps.get_prerelease.outputs.prerelease }}

0 commit comments

Comments
 (0)