Merge pull request #740 from jpsim/patch-1
ci: only rerun failed jobs on `/retest`
This commit is contained in:
commit
356db54531
4
.github/actions/retest-action/entrypoint.sh
vendored
4
.github/actions/retest-action/entrypoint.sh
vendored
@ -27,10 +27,10 @@ curl --request GET \
|
|||||||
--header "authorization: Bearer ${GITHUB_TOKEN}" \
|
--header "authorization: Bearer ${GITHUB_TOKEN}" \
|
||||||
--header "content-type: application/json" | jq '.workflow_runs | max_by(.run_number)' > run.json
|
--header "content-type: application/json" | jq '.workflow_runs | max_by(.run_number)' > run.json
|
||||||
|
|
||||||
RERUN_URL=$(jq -r '.rerun_url' run.json)
|
RUN_URL=$(jq -r '.rerun_url' run.json)
|
||||||
|
|
||||||
curl --request POST \
|
curl --request POST \
|
||||||
--url "${RERUN_URL}" \
|
--url "${RUN_URL}/rerun-failed-jobs" \
|
||||||
--header "authorization: Bearer ${GITHUB_TOKEN}" \
|
--header "authorization: Bearer ${GITHUB_TOKEN}" \
|
||||||
--header "content-type: application/json"
|
--header "content-type: application/json"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user