Skip to content

Commit

Permalink
Clean up downloaded assets after verification and install (#193)
Browse files Browse the repository at this point in the history
Clean up downloaded assets after verification and install
  • Loading branch information
bflad authored Jan 23, 2024
1 parent 0df92fd commit a86464c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# v3.0.0
# v2.1.3

BUG FIXES

- Remove downloaded hc-release assets after verification and install to prevent dirty workspace directory for subsequent actions

# v2.0.0

NOTES

Expand Down
3 changes: 3 additions & 0 deletions scripts/setup-hc-releases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ run_quiet unzip -o -d "$DEST_DIR" "hc-releases_${version}_$pattern"
chmod 755 "${DEST_DIR}/hc-releases"
echo "$DEST_DIR" >> "$GITHUB_PATH"

# clean up downloads
/bin/rm -vf "$sums_name" "hc-releases_${version}_${pattern}"

# report version installed
V="$("${DEST_DIR}/hc-releases" version)"
echo "version=$V" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit a86464c

Please sign in to comment.