Skip to content

Commit

Permalink
chore(ci): Fix changelog workflow (#1690)
Browse files Browse the repository at this point in the history
  • Loading branch information
anhductn2001 authored Dec 30, 2024
1 parent 5ce245c commit 8deff6a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v3
with:
fetch-depth: 1
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down Expand Up @@ -41,7 +41,8 @@ jobs:
if [ "$branch_exists" == "true" ]; then
git checkout auto-changelog-update-do-not-create-manually
git merge main --strategy-option theirs --allow-unrelated-histories --no-edit
conventional-changelog -p angular -i CHANGELOG.md -s
conventional-changelog -p angular -i CHANGELOG.md -s -r 0
sed -i '1i # Changelog\n## [Unreleased]\n' CHANGELOG.md
git add CHANGELOG.md
git commit -m "Update CHANGELOG.md [skip ci]"
git push origin auto-changelog-update-do-not-create-manually
Expand All @@ -50,7 +51,8 @@ jobs:
git checkout main
git checkout -b auto-changelog-update-do-not-create-manually
git push origin auto-changelog-update-do-not-create-manually
conventional-changelog -p angular -i CHANGELOG.md -s
conventional-changelog -p angular -i CHANGELOG.md -s -r 0
sed -i '1i # Changelog\n## [Unreleased]\n' CHANGELOG.md
fi
- name: Create Pull Request
Expand Down

0 comments on commit 8deff6a

Please sign in to comment.