File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -16,16 +16,21 @@ jobs:
1616 repository : " Govcraft/rust-docs-mcp-server"
1717 - name : Generate and Commit Changelog
1818 run : |
19- # Download and extract git-chglog
19+ # Create a temporary directory for extraction
20+ mkdir chglog_tmp
21+
22+ # Download git-chglog archive
2023 wget https://github.com/git-chglog/git-chglog/releases/download/v0.15.4/git-chglog_0.15.4_linux_amd64.tar.gz
21- tar -xvzf git-chglog_0.15.4_linux_amd64.tar.gz
2224
23- # Generate changelog
24- ./git-chglog -o ./CHANGELOG.md
25+ # Extract into the temporary directory
26+ tar -xvzf git-chglog_0.15.4_linux_amd64.tar.gz -C chglog_tmp
27+
28+ # Generate changelog using the extracted executable
29+ ./chglog_tmp/git-chglog -o ./CHANGELOG.md
2530
26- # Clean up downloaded files
31+ # Clean up downloaded archive and temporary directory
2732 rm git-chglog_0.15.4_linux_amd64.tar.gz
28- rm git-chglog
33+ rm -rf chglog_tmp
2934
3035 # Configure git user
3136 git config user.name "github-actions[bot]"
You can’t perform that action at this time.
0 commit comments