Skip to content

Commit

Permalink
update changelog file
Browse files Browse the repository at this point in the history
Signed-off-by: oliver könig <[email protected]>
  • Loading branch information
ko3n1g committed Jan 3, 2025
1 parent 2144fc8 commit 94e954a
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/changelog-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,25 @@ jobs:
fromTag: ${{ inputs.last-release-tag }}
toTag: ${{ inputs.release-branch }}

- name: Print Changelog
env:
- name: Update changelog file
env:
RELEASE_BRANCH: ${{ inputs.release-branch }}
CHANGELOG: ${{ steps.github_tag.outputs.changelog }}
run: |
echo "$CHANGELOG"
RELEASE_VERSION=${RELEASE_BRANCH#r}
CHANGELOG=$(echo "$CHANGELOG" | sed '/^[[:blank:]]*#/s/#/##/')
RELEASE_NOTES="## NVIDIA Neural Modules $RELEASE_VERSION
### Detailed Changelogs:
$CHANGELOG"
printf "%s\n" "$RELEASE_NOTES" | sed '/<!-- Next changelog -->/r /dev/stdin' CHANGELOG.md > CHANGELOG.tmp.md
mv CHANGELOG.tmp.md CHANGELOG.md
cat CHANGELOG.md
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
Expand Down

0 comments on commit 94e954a

Please sign in to comment.