Skip to content

Commit

Permalink
Generate fuller changelogs for snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
meithecatte committed Mar 6, 2023
1 parent 8fc5a7e commit 5ff0aa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ jobs:
- run: ./build.sh
- run: python3 .github/workflows/name_release.py
id: name_release
- name: Generate changelog
run: git log --format='* %B' $(git describe --tags --abbrev=0).. > changelog.txt
- uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.name_release.outputs.release_name }}
name: "Snapshot ${{ steps.name_release.outputs.release_name }}"
files: miniforth.img
body_path: changelog.txt
2 changes: 1 addition & 1 deletion .github/workflows/name_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
tag = base + letter

if os.system('git show-ref --quiet --tags ' + tag) != 0:
print('::set-output name=release_name::' + tag)
os.system(f'echo release_name={tag} >> $GITHUB_OUTPUT')
break
else:
raise hell

0 comments on commit 5ff0aa8

Please sign in to comment.