CI/CD: Generate release changelog from commits. resolves #34

This commit is contained in:
ngosang 2021-01-10 15:39:10 +01:00
parent 69c4d9edfa
commit 6400449344
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
name: publish
name: release-docker
on:
push:

View File

@ -29,7 +29,7 @@ jobs:
- name: Build changelog
id: github_changelog
run: |
changelog=$(git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline)
changelog=$(git log $(git tag | tail -2 | head -1)..HEAD --no-merges --oneline)
changelog="${changelog//'%'/'%25'}"
changelog="${changelog//$'\n'/'%0A'}"
changelog="${changelog//$'\r'/'%0D'}"