Skip to content

Commit

Permalink
ci(workflow): update changelog generation
Browse files Browse the repository at this point in the history
Remove redundant Git worktree initialization and configuration steps. Ensure changelog is generated and copied to the root directory using the updated command.
  • Loading branch information
rrrodzilla committed Jun 29, 2024
1 parent cf3cf05 commit 50a9e6b
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,21 @@ jobs:
fetch-tags: true
fetch-depth: 0

- name: Ensure Git worktree is properly initialized
- name: Configure Git
run: |
git worktree add worktree-main main
cd worktree-main
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
- name: Debug Git repository
run: |
git fetch --all --tags
git tag
git log --oneline --decorate
shell: bash
- name: Install gitchglog
run: |
wget https://github.com/git-chglog/git-chglog/releases/download/v0.15.4/git-chglog_0.15.4_linux_amd64.tar.gz
tar -xvzf git-chglog_0.15.4_linux_amd64.tar.gz
shell: bash
- name: Generate changelog
run: |
cd worktree-main
./../git-chglog -o CHANGELOG.md
shell: bash

- name: Copy changelog to root directory
run: cp worktree-main/CHANGELOG.md .
shell: bash
run: ./git-chglog -o CHANGELOG.md

0 comments on commit 50a9e6b

Please sign in to comment.