Skip to content

Commit 31f3d54

Browse files
Update .github/workflows/build-node-packages.yml
Co-authored-by: Eli Skeggs <1348991+skeggse@users.noreply.github.com>
1 parent b96733c commit 31f3d54

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/build-node-packages.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,12 @@ jobs:
123123
# to asana-oss-cache.asana.biz/* (CloudFront). If the S3 key prefix isn't
124124
# allowlisted in CloudFront's path_patterns, Bazel fetches will 403.
125125
# Fail fast here rather than after someone tries to build.
126-
URL="https://asana-oss-cache.asana.biz/${S3_KEY}"
127-
echo "Checking ${URL}"
128-
curl -fsSI "${URL}" || { echo "CloudFront returned an error for ${URL}. Check path_patterns in system_packages.tf."; exit 1; }
126+
URL="https://asana-oss-cache.asana.biz/$S3_KEY"
127+
echo "Checking $URL"
128+
if ! curl -fsSI "$URL"; then
129+
echo "CloudFront returned an error for $URL. Check path_patterns in system_packages.tf."
130+
exit 1
131+
fi
129132
130133
- name: Print tools_repositories.bzl stanza
131134
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)