chore: CI: add RELEASES.md diff to nightly description

This commit is contained in:
Sebastian Ullrich 2022-02-08 13:46:53 +01:00
parent e45830f8b3
commit ad80c69cba

View file

@ -231,10 +231,11 @@ jobs:
git tag ${{ needs.set-nightly.outputs.nightly }}
git push nightly ${{ needs.set-nightly.outputs.nightly }}
last_tag=$(git describe HEAD^ --abbrev=0 --tags)
echo -e "Changes since ${last_tag}:\n\n" > diff.md
#git show $last_tag:doc/changes.md > old.md
echo -e "*Changes since ${last_tag}:*\n\n" > diff.md
git show $last_tag:doc/RELEASES.md > old.md
#./script/diff_changelogs.py old.md doc/changes.md >> diff.md
echo -e "*Full commit log*\n" >> diff.md
diff --changed-group-format='%>' --unchanged-group-format='' old.md doc/RELEASES.md >> diff.md
echo -e "\n*Full commit log*\n" >> diff.md
git log --oneline $last_tag..HEAD | sed 's/^/* /' >> diff.md
- name: Release Nightly
uses: softprops/action-gh-release@v1