Skip to content

Commit

Permalink
fix(ci): Fix workflow for autogeneration changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhbert committed Sep 26, 2024
1 parent a4344d3 commit 7b2acf0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/release-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
- name: Setup Task
uses: arduino/setup-task@v2

- name: Check or create branch
run: task check_changelog_branch

- name: Generate changelog
uses: orhun/git-cliff-action@v3
with:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/update-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:
- name: Setup Task
uses: arduino/setup-task@v2

- name: Check or create branch
run: task check_changelog_branch

- name: Generate changelog
uses: orhun/git-cliff-action@v3
with:
Expand All @@ -42,4 +39,4 @@ jobs:
git config --global user.email '[email protected]'
git add CHANGELOG.md
git commit -m "Update CHANGELOG.md"
git push https://github.com/${{ github.repository }}.git HEAD:update-changelog
git push https://github.com/${{ github.repository }}.git HEAD:main
5 changes: 0 additions & 5 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,3 @@ tasks:
cmds:
- |
rm -rf ./result
check_changelog_branch:
desc: 'Check for a changelog branch'
cmds:
- |
if git ls-remote origin update-changelog | grep -sw "update-changelog" 2>&1>/dev/null; then git checkout origin/update-changelog ; else git checkout -b update-changelog ; fi

0 comments on commit 7b2acf0

Please sign in to comment.