@@ -22,39 +22,18 @@ jobs:
2222 with :
2323 install : ' false' # Don't need dependencies for this script
2424
25- # Process commits and generate changelog with proper error handling
25+ # Process commits and generate changelog
2626 - name : Update changelog from commits
27- id : changelog
2827 env :
2928 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3029 GITHUB_REPOSITORY : ${{ github.repository }}
3130 COMMIT_SHAS : ${{ join(github.event.commits.*.id, ' ') }}
3231 run : |
3332 set -e
34-
35- # Generate new changelog
36- if node build/update-changelog.js $COMMIT_SHAS > docs/CHANGELOG.md.new; then
37- # Only update if the script succeeded
38- mv docs/CHANGELOG.md.new docs/CHANGELOG.md
39- echo "updated=true" >> $GITHUB_OUTPUT
40- else
41- echo "::error::Failed to update changelog"
42- rm -f docs/CHANGELOG.md.new
43- echo "updated=false" >> $GITHUB_OUTPUT
44- exit 1
45- fi
46-
47- - name : Check for actual changes
48- id : check-changes
49- run : |
50- if git diff --quiet docs/CHANGELOG.md; then
51- echo "changed=false" >> $GITHUB_OUTPUT
52- else
53- echo "changed=true" >> $GITHUB_OUTPUT
54- fi
33+ node build/update-changelog.js $COMMIT_SHAS > docs/CHANGELOG.md.new
34+ mv docs/CHANGELOG.md.new docs/CHANGELOG.md
5535
5636 - name : Commit files
57- if : steps.check-changes.outputs.changed == 'true'
5837 uses : stefanzweifel/git-auto-commit-action@v7
5938 with :
6039 commit_message : Apply changelog updates
0 commit comments