File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -16,16 +16,21 @@ jobs:
16
16
repository : " Govcraft/rust-docs-mcp-server"
17
17
- name : Generate and Commit Changelog
18
18
run : |
19
- # Download and extract git-chglog
19
+ # Create a temporary directory for extraction
20
+ mkdir chglog_tmp
21
+
22
+ # Download git-chglog archive
20
23
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
22
24
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
25
30
26
- # Clean up downloaded files
31
+ # Clean up downloaded archive and temporary directory
27
32
rm git-chglog_0.15.4_linux_amd64.tar.gz
28
- rm git-chglog
33
+ rm -rf chglog_tmp
29
34
30
35
# Configure git user
31
36
git config user.name "github-actions[bot]"
You can’t perform that action at this time.
0 commit comments