Skip to content

Commit f7b7c6f

Browse files
committed
Add one more sleep before downloading to ensure the file is fully available.
1 parent ceb9163 commit f7b7c6f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ runs:
8282
# Perform a HEAD request to check if the zip is available
8383
status_code=$(curl --silent --output /dev/null --write-out "%{http_code}" --head "$zipurl")
8484
if [ "$status_code" -eq 200 ]; then
85+
# One more sleep before downloading to ensure the file is fully available
86+
sleep $sleep
8587
curl --silent --output "${PLUGIN}.zip" "$zipurl"
8688
# Calculate SHA-256 hash of the downloaded zip
8789
sha256=$(sha256sum "${PLUGIN}.zip" | cut -d' ' -f1)

0 commit comments

Comments
 (0)