Skip to content

Commit 401014e

Browse files
committed
ci: Update GitHub Actions workflow to use new output and state syntax
1 parent 0451c20 commit 401014e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@ jobs:
8080
uses: release-drafter/release-drafter@v5
8181
env:
8282
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83+
with:
84+
output: CHANGELOG.md
85+
86+
- name: Set Release Body
87+
if: matrix.platform.os == 'ubuntu-latest'
88+
run: |
89+
body="$(cat CHANGELOG.md)"
90+
echo "RELEASE_BODY<<EOF" >> $GITHUB_ENV
91+
echo "$body" >> $GITHUB_ENV
92+
echo "EOF" >> $GITHUB_ENV
8393
8494
- name: Upload binaries to release
8595
uses: svenstaro/upload-release-action@v2
@@ -89,7 +99,7 @@ jobs:
8999
asset_name: ${{ matrix.platform.asset_name }}
90100
tag: ${{ github.ref }}
91101
overwrite: true
92-
body: ${{ steps.changelog.outputs.body }}
102+
body: ${{ env.RELEASE_BODY }}
93103

94104
- name: Upload SHA256 checksums
95105
uses: svenstaro/upload-release-action@v2

0 commit comments

Comments
 (0)