Skip to content

Commit 1afa209

Browse files
committed
fix: load output env correctly for github step outputs
1 parent 13cebc4 commit 1afa209

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/generate-release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,20 @@ jobs:
6363
fi
6464
6565
- name: Generate changelog
66-
run: |
67-
python3 .github/changelogs.py ${{ steps.target.outputs.target }} --ci
66+
uses: hanthor/changelog-action@master
67+
with:
68+
stream: ${{ steps.target.outputs.target }}
69+
family: bluefin-lts
70+
output-env: ./output.env
6871

6972
- name: Read changelog outputs
7073
id: changelog
7174
run: |
7275
# Source the output.env file to get TAG and TITLE
7376
if [ -f output.env ]; then
74-
cat output.env >> $GITHUB_OUTPUT
77+
source ./output.env
78+
echo "TAG=${TAG}" >> $GITHUB_OUTPUT
79+
echo "TITLE=${TITLE}" >> $GITHUB_OUTPUT
7580
else
7681
echo "output.env not found; assuming changelog generation was skipped"
7782
echo "skip_release=true" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)