CI: fix AppVeyor status failing for starting jobs

This commit is contained in:
Marc Hoersken 2022-10-24 20:50:27 +02:00
parent 038bfb8522
commit 0e6e56930f
No known key found for this signature in database
GPG Key ID: AD50A64F2A32040F

View File

@ -31,9 +31,10 @@ jobs:
jq -c '.build.jobs[] | {target_url: ($target_url + "/job/" + .jobId),
context: (.name | sub("^(Environment: )?"; "AppVeyor / ")),
state: (.status | sub("queued"; "pending")
| sub("starting"; "pending")
| sub("running"; "pending")
| sub("failed"; "failure")
| sub("cancelled"; "error")),
description: .status}' \
--arg target_url ${APPVEYOR_TARGET_URL} | parallel --pipe -j 1 -N 1 \
--arg target_url ${APPVEYOR_TARGET_URL} | tee /dev/stderr | parallel --pipe -j 1 -N 1 \
gh api --silent --input - repos/${APPVEYOR_REPOSITORY}/statuses/${APPVEYOR_COMMIT_SHA}