diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index ec126fd..0268f75 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -36,9 +36,9 @@ 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) - STATUS=$(echo ${RESULT[0]} | sed -e 's/^"//' -e 's/"$//') - CONCLUSION=$(echo ${RESULT[1]} | sed -e 's/^"//' -e 's/"$//') + 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 echo "No workflow found yet" else