Clean up change logs a bit.

This commit is contained in:
fewtarius 2022-04-12 19:23:18 -04:00
parent 1b67035f38
commit d7f7e3c672
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A
2 changed files with 8 additions and 1 deletions

View file

@ -38,6 +38,9 @@ jobs:
id: changes id: changes
run: | run: |
release_notes="$(git log --after="$(date --date="yesterday" +"%Y-%m-%d %H:%m")" --before="$(date +"%Y-%m-%d %H:%m")" --pretty=format:"* %h: %s")" release_notes="$(git log --after="$(date --date="yesterday" +"%Y-%m-%d %H:%m")" --before="$(date +"%Y-%m-%d %H:%m")" --pretty=format:"* %h: %s")"
release_notes="${release_notes//'%'/'%25'}"
release_notes="${release_notes//$'\n'/'%0A'}"
release_notes="${release_notes//$'\r'/'%0D'}"
echo "::set-output name=changes::$(echo ${release_notes} | wc -l)" echo "::set-output name=changes::$(echo ${release_notes} | wc -l)"
echo "::set-output name=release_notes::${release_notes}" echo "::set-output name=release_notes::${release_notes}"
- name: Get date for artifacts - name: Get date for artifacts

View file

@ -34,7 +34,11 @@ jobs:
- name: changes - name: changes
id: changes id: changes
run: | run: |
release_notes="$(git log --after="$(date --date="yesterday" +"%Y-%m-%d %H:%m")" --before="$(date +"%Y-%m-%d %H:%m")" --pretty=format:"* %h: %s")" prevrelcommit="$(git rev-list --tags --max-count=1)"
release_notes="$(git log ${prevrelcommit}..HEAD --pretty=format:"* %h: %s")"
release_notes="${release_notes//'%'/'%25'}"
release_notes="${release_notes//$'\n'/'%0A'}"
release_notes="${release_notes//$'\r'/'%0D'}"
echo "::set-output name=changes::$(echo ${release_notes} | wc -l)" echo "::set-output name=changes::$(echo ${release_notes} | wc -l)"
echo "::set-output name=release_notes::${release_notes}" echo "::set-output name=release_notes::${release_notes}"
- name: Get date for artifacts - name: Get date for artifacts