Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Aug 16, 2024
1 parent a39c495 commit 8596e79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ runs:
echo "Waiting for $job_id" >&2
# Check if the job is also waiting
job_index="$(jq --arg id "${job_id}" '.[] | select(.id == $id).index' <<<"${matrix_jobs}")"
sync_artifact_name="${sync_artifact_prefix}-${job_index}"
job_index="$(jq --arg id "${job_id}" '.[] | select(.id == ($id | tonumber)).index' <<<"${matrix_jobs}")"
sync_artifact_name="${sync_artifact_prefix:?}-${job_index:?}"
# https://docs.github.com/en/rest/actions/artifacts?apiVersion=2022-11-28#list-workflow-run-artifacts
artifacts="$(gh api -X GET "/repos/{owner}/{repo}/actions/runs/${run_id:?}/artifacts")"
Expand Down

0 comments on commit 8596e79

Please sign in to comment.