Skip to content

Commit 8041000

Browse files
committed
Update generate-changelog.yml
1 parent a0bdacb commit 8041000

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.github/workflows/generate-changelog.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,18 @@ on:
88
jobs:
99
changelog:
1010
runs-on: ubuntu-latest
11-
1211
steps:
13-
# Step 1: Checkout repository
14-
- name: Checkout repository
15-
uses: actions/checkout@v3
12+
- uses: actions/checkout@v3
1613

17-
# Step 2: Generate the changelog file
18-
- name: Generate Changelog
14+
- name: Debug git log
1915
run: |
20-
git log --pretty=format:"* %h - %s (%an, %ad)" --date=short > CHANGES.md
21-
22-
# Step 3: Debugging to ensure CHANGES.md was created
23-
- name: Debug CHANGES.md
24-
run: cat CHANGES.md || echo "CHANGES.md not created."
16+
git log --pretty=format:"* %h - %s (%an, %ad)" --date=short || echo "git log failed"
2517
26-
# Step 4: Configure GitHub Actions bot for commits
27-
- name: Configure git
18+
- name: Generate Changelog
2819
run: |
20+
git log --pretty=format:"* %h - %s (%an, %ad)" --date=short > CHANGES.md
2921
git config --global user.name "github-actions[bot]"
3022
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
31-
32-
# Step 5: Commit and push changes
33-
- name: Commit and push changes
34-
run: |
3523
git add CHANGES.md
3624
git commit -m "Update changelog"
3725
git push

0 commit comments

Comments
 (0)