From 7c3035bde98e92b09a435d2ba934a478d5f2076b Mon Sep 17 00:00:00 2001 From: tiawl Date: Mon, 29 Apr 2024 10:08:15 +0200 Subject: [PATCH] [fix] --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 589fd71..c5dc8d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,16 +108,18 @@ jobs: - name: Wait for the new job to end id: end env: - FIELD: 'conclusion' + CONCLUSION: 'conclusion' GH_TOKEN: "${{ github.token }}" ID: "${{ steps.start.outputs.job_id }}" + STATUS: 'status' shell: bash run: | - while [[ "${conclusion:-}" != 'success' && "${conclusion:-}" != 'failure' ]] + while [[ "${status:-}" != 'completed' ]] do sleep 2 - conclusion="$(gh run view --json "${FIELD}" "${ID}" --jq ".${FIELD}")" + status="$(gh run view --json "${STATUS}" "${ID}" --jq ".${STATUS}")" done + conclusion="$(gh run view --json "${CONCLUSION}" "${ID}" --jq ".${CONCLUSION}")" printf 'job_result=%s\n' "${conclusion}" >> "${GITHUB_OUTPUT}" - name: Fail if the dump failed