Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdv2429 committed May 2, 2024
1 parent 0fd718e commit 2b6e1cb
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,16 @@ jobs:
with:
node-version: "18"

- name: Install conventional-changelog-cli
run: npm install -g conventional-changelog-cli

- name: Generate changelog diff
- name: Update Changelog
run: |
echo "Pull Request Title: ${{ github.event.pull_request.title }}"
echo "Pull Request Body: ${{ github.event.pull_request.body }}"
conventional-changelog -p angular -i CHANGELOG.md -s -r 0
git diff CHANGELOG.md > changelog_diff.md
cat changelog_diff.md
echo "## PR #${{ github.event.pull_request.number }} - ${{ github.event.pull_request.title }}" >> CHANGELOG.md
echo "- ${{ github.event.pull_request.body }}" >> CHANGELOG.md
echo "" >> CHANGELOG.md
- name: Commit and push changelog update
run: |
git config user.name 'github-actions'
git config user.email '[email protected]'
git add CHANGELOG.md
git commit -m "Update CHANGELOG.md based on PR #${{ github.event.pull_request.number }}: ${{ github.event.pull_request.title }}"
git commit -m "Update CHANGELOG.md for PR #${{ github.event.pull_request.number }}"
git push origin HEAD:refs/heads/${{ github.head_ref }}

0 comments on commit 2b6e1cb

Please sign in to comment.