From 514cb8cfd10663d475bb10802e31f3ec05d7e03f Mon Sep 17 00:00:00 2001 From: David Daly Date: Wed, 31 Jan 2024 09:04:06 +0000 Subject: [PATCH 1/7] fix lint --- .github/workflows/ci-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index b42663d..eb6cb93 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -25,7 +25,7 @@ jobs: - name: Wait for successful publish id: wait-for-successful-publish run: | - START_TIME=$SECONDS + START_TIME="$SECONDS" TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ") while (( SECONDS - START_TIME < 60 )); do echo "Polling for workflow created after $TIMESTAMP" From bb8616bad2d2807412f3932eb8d428b8af9b95ff Mon Sep 17 00:00:00 2001 From: David Daly Date: Wed, 31 Jan 2024 09:13:07 +0000 Subject: [PATCH 2/7] fix lint --- .github/workflows/ci-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index eb6cb93..ec126fd 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -26,7 +26,7 @@ jobs: id: wait-for-successful-publish run: | START_TIME="$SECONDS" - TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ") + 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" \ From 10ef4a54d9103be926bc02e08711c53308ba8b9a Mon Sep 17 00:00:00 2001 From: David Daly Date: Wed, 31 Jan 2024 09:17:58 +0000 Subject: [PATCH 3/7] 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 From 879b696ad3758249b7b00b201ce34deb0f954ce8 Mon Sep 17 00:00:00 2001 From: David Daly Date: Wed, 31 Jan 2024 09:41:40 +0000 Subject: [PATCH 4/7] fix lint --- .github/workflows/ci-e2e.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index 14f8f55..2af1b3a 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -37,8 +37,8 @@ jobs: # 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/"$//')" + 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 From 578e5815560b68829bf69ae3a77b9f68ebd90427 Mon Sep 17 00:00:00 2001 From: David Daly Date: Wed, 31 Jan 2024 10:02:43 +0000 Subject: [PATCH 5/7] fix lint --- .github/workflows/ci-e2e.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index 2af1b3a..15944cc 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -25,18 +25,18 @@ jobs: - name: Wait for successful publish id: wait-for-successful-publish run: | - START_TIME="$SECONDS" + START_TIME=$SECONDS 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") + RESULT=($RESULT) STATUS=$(echo "${RESULT[0]}" | sed -e 's/^"//' -e 's/"$//') CONCLUSION=$(echo "${RESULT[1]}" | sed -e 's/^"//' -e 's/"$//') if [ -z "$STATUS" ]; then From bfd91a146f0cba50eb8762d4d47e7356b3248beb Mon Sep 17 00:00:00 2001 From: David Daly Date: Wed, 31 Jan 2024 10:13:50 +0000 Subject: [PATCH 6/7] fix lint --- .github/workflows/ci-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index a205f74..0ee4e2f 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -36,7 +36,7 @@ jobs: | jq '.workflow_runs[] | select(.name=="Publish Actions Package" and (.display_title | contains("${{ github.sha }}"))) | .status, .conclusion') # split the RESULT into an array - RESULT=($RESULT) + RESULT=("$RESULT") STATUS=$(echo "${RESULT[0]}" | sed -e 's/^"//' -e 's/"$//') CONCLUSION=$(echo "${RESULT[1]}" | sed -e 's/^"//' -e 's/"$//') if [ -z "$STATUS" ]; then From 009aa87fef006475ce3897fb21ac82f25e8d22b1 Mon Sep 17 00:00:00 2001 From: David Daly Date: Wed, 31 Jan 2024 10:25:13 +0000 Subject: [PATCH 7/7] fix lint --- .github/workflows/ci-e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index 0ee4e2f..0268f75 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -36,7 +36,7 @@ jobs: | jq '.workflow_runs[] | select(.name=="Publish Actions Package" and (.display_title | contains("${{ github.sha }}"))) | .status, .conclusion') # split the RESULT into an array - RESULT=("$RESULT") + mapfile -t RESULT <<< "$RESULT" STATUS=$(echo "${RESULT[0]}" | sed -e 's/^"//' -e 's/"$//') CONCLUSION=$(echo "${RESULT[1]}" | sed -e 's/^"//' -e 's/"$//') if [ -z "$STATUS" ]; then