Skip to content

Commit aaf3602

Browse files
committed
fix(ci): use file instead of output for changelog
1 parent 74bd069 commit aaf3602

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ jobs:
3333
name: Generate changelog
3434
runs-on: ubuntu-latest
3535
needs: version
36-
outputs:
37-
changelog: ${{steps.changelog-generator.outputs.changelog}}
3836
steps:
3937
- uses: actions/checkout@v4
4038
- name: Hack around https://github.com/actions/checkout/issues/290
@@ -55,9 +53,11 @@ jobs:
5553
id: changelog-generator
5654
run: |
5755
dart pub global run changelog_cli generate -P markdown -s ${{needs.version.outputs.prev-version}} -e ${{needs.version.outputs.version}} > CHANGELOG.md
58-
CHANGELOG="$(cat CHANGELOG.md)"
59-
echo "$CHANGELOG"
60-
echo "changelog=$CHANGELOG" >> "$GITHUB_OUTPUT"
56+
- name: Upload changelog
57+
uses: actions/upload-artifact@v4
58+
with:
59+
name: changelog
60+
path: CHANGELOG.md
6161
build-apk:
6262
name: Build APK
6363
runs-on: ubuntu-latest
@@ -154,7 +154,7 @@ jobs:
154154
uses: softprops/[email protected]
155155
with:
156156
tag_name: ${{ needs.version.outputs.version }}
157-
body: ${{needs.changelog.outputs.changelog}}
157+
bodyFile: ${{steps.download.outputs.download-path}}/CHANGELOG.md
158158
files: |
159159
${{steps.download.outputs.download-path}}/**/*
160160
build-web:

0 commit comments

Comments
 (0)