Skip to content

Commit 0250256

Browse files
committed
fix: unzip to temp location
1 parent 3d9093b commit 0250256

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/changelog.yml

+11-6
Original file line numberDiff line numberDiff 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]"

0 commit comments

Comments
 (0)