Skip to content

Commit

Permalink
Fix shell syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
thesan committed Jun 20, 2023
1 parent 82f3d6e commit 4c16e55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
LONG="$PROJECT-$PREFIX$URL_BRANCH-joystream"
SHORT=$(echo "$LONG" | head -c 46)
SUBDOMAIN=$( \
[ ${#LONG} -lte 63 ] \
[ ${#LONG} -te 63 ] \
&& echo "$LONG" \
|| echo "$SHORT-$(echo -n "$PREFIX$BRANCH$PROJECT" | sha256sum | head -c 6)" \
)
Expand All @@ -127,13 +127,14 @@ jobs:
- name: Wait for the deployment to complete
run: |
while true; do
RES=$(curl -L "https://api.vercel.com/v13/deployments/${{ env.VERCEL_DEPLOYMENT_URL }}")
ARR=($( \
node \
-e " \
const res = JSON.parse(process.argv[1]); \
process.stdout.write(`${res.status} ${res.meta.githubCommitSha}`);
" \
"$(curl -L "https://api.vercel.com/v13/deployments/${{ env.VERCEL_DEPLOYMENT_URL }}")" \
"RES" \
))
STATUS=${ARR[1]}
SHA=${ARR[2]}
Expand Down

0 comments on commit 4c16e55

Please sign in to comment.