Skip to content

Commit

Permalink
fix: also set release notes from file when file exists (#1081)
Browse files Browse the repository at this point in the history
<!-- markdownlint-disable MD041 -->
#### What this PR does / why we need it

If the release notes file exists the release notes aren't properly set
into the environment which causes the release notes not to be applied to
the release correctly

#### Which issue(s) this PR fixes
<!--
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
  • Loading branch information
jakobmoellerdev authored Nov 13, 2024
1 parent 2b02f10 commit d7564d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@ jobs:
if [ ! -f "$f" ]; then
echo "# Release ${{ env.RELEASE_VERSION }}" > "$f"
echo "$RELEASE_NOTES" | tail -n +2 >> "$f"
echo "RELEASE_NOTES_FILE=$f" >> $GITHUB_ENV
git add "$f"
git commit -m "ReleaseNotes for $RELEASE_VERSION"
git push origin ${GITHUB_REF#refs/heads/}
else
echo "Using release notes file $f from code base"
fi
echo "RELEASE_NOTES_FILE=$f" >> $GITHUB_ENV
- name: Create and Push Release
env:
Expand Down

0 comments on commit d7564d6

Please sign in to comment.