mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-01 21:10:13 +00:00
Fix demo workflow asset checks to follow redirects
The workflow was failing because GitHub returns 302 redirects for freshly published release assets while the CDN propagates. Adding -L flag to curl commands allows them to follow redirects and properly detect when assets are available.
This commit is contained in:
parent
dc8eaa3ffe
commit
e7e7c95236
1 changed files with 2 additions and 2 deletions
4
.github/workflows/update-demo-server.yml
vendored
4
.github/workflows/update-demo-server.yml
vendored
|
|
@ -29,9 +29,9 @@ jobs:
|
|||
echo "Checking for assets (attempt $((ATTEMPT + 1))/$MAX_ATTEMPTS)..."
|
||||
|
||||
# Check if checksums.txt and linux-amd64 tarball exist
|
||||
CHECKSUMS_STATUS=$(curl -s -o /dev/null -w "%{http_code}" \
|
||||
CHECKSUMS_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" \
|
||||
"https://github.com/rcourtman/Pulse/releases/download/${TAG}/checksums.txt")
|
||||
TARBALL_STATUS=$(curl -s -o /dev/null -w "%{http_code}" \
|
||||
TARBALL_STATUS=$(curl -sL -o /dev/null -w "%{http_code}" \
|
||||
"https://github.com/rcourtman/Pulse/releases/download/${TAG}/pulse-${TAG}-linux-amd64.tar.gz")
|
||||
|
||||
echo "checksums.txt: $CHECKSUMS_STATUS, tarball: $TARBALL_STATUS"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue