From: Marc Hoersken Date: Fri, 21 Oct 2022 20:54:04 +0000 (+0200) Subject: CI: fix AppVeyor job links only working for most recent build X-Git-Tag: curl-7_86_0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2e9376a891dd55861167ed5c341491b5adae7d0;p=thirdparty%2Fcurl.git CI: fix AppVeyor job links only working for most recent build Ref: https://github.com/curl/curl/pull/9768#issuecomment-1286675916 Reported-by: Daniel Stenberg Follow up to #9769 --- diff --git a/.github/workflows/appveyor-status.yml b/.github/workflows/appveyor-status.yml index 53112f3797..a97bf86c38 100644 --- a/.github/workflows/appveyor-status.yml +++ b/.github/workflows/appveyor-status.yml @@ -28,7 +28,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | echo ${APPVEYOR_TARGET_URL} | sed 's/\/project\//\/api\/projects\//' | xargs -t -n1 curl -s | \ - jq -c '.build.jobs[] | {target_url: (($target_url | sub("s\\/\\d+"; "/job/")) + .jobId), + jq -c '.build.jobs[] | {target_url: ($target_url + "/job/" + .jobId), context: (.name | sub("^(Environment: )?"; "AppVeyor / ")), state: (.status | sub("queued"; "pending") | sub("running"; "pending")