From 10ef4a54d9103be926bc02e08711c53308ba8b9a Mon Sep 17 00:00:00 2001 From: David Daly Date: Wed, 31 Jan 2024 09:17:58 +0000 Subject: [PATCH] fix lint --- .github/workflows/ci-e2e.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index ec126fd..14f8f55 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -29,16 +29,16 @@ jobs: TIMESTAMP="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" while (( SECONDS - START_TIME < 60 )); do echo "Polling for workflow created after $TIMESTAMP" - RESULT=$(curl -s -L -H "Accept: application/vnd.github+json" \ + RESULT="$(curl -s -L -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${{ secrets.PAT }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ "https://api.github.com/repos/immutable-actions/test-publish-internal-ts-action/actions/runs?created=>$TIMESTAMP" \ - | jq '.workflow_runs[] | select(.name=="Publish Actions Package" and (.display_title | contains("${{ github.sha }}"))) | .status, .conclusion') + | jq '.workflow_runs[] | select(.name=="Publish Actions Package" and (.display_title | contains("${{ github.sha }}"))) | .status, .conclusion')" # split the RESULT into an array - RESULT=($RESULT) - STATUS=$(echo ${RESULT[0]} | sed -e 's/^"//' -e 's/"$//') - CONCLUSION=$(echo ${RESULT[1]} | sed -e 's/^"//' -e 's/"$//') + RESULT=("$RESULT") + STATUS="$(echo ${RESULT[0]} | sed -e 's/^"//' -e 's/"$//')" + CONCLUSION="$(echo ${RESULT[1]} | sed -e 's/^"//' -e 's/"$//')" if [ -z "$STATUS" ]; then echo "No workflow found yet" else