Skip to content

Commit

Permalink
[fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
tiawl committed Apr 29, 2024
1 parent 8aa76fe commit 7c3035b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c3035b

Please sign in to comment.