File tree Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Expand file tree Collapse file tree 1 file changed +5
-17
lines changed Original file line number Diff line number Diff line change 88jobs :
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
You can’t perform that action at this time.
0 commit comments