File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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'
You can’t perform that action at this time.
0 commit comments