]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CI: fix AppVeyor job links only working for most recent build
authorMarc Hoersken <info@marc-hoersken.de>
Fri, 21 Oct 2022 20:54:04 +0000 (22:54 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Fri, 21 Oct 2022 20:54:32 +0000 (22:54 +0200)
Ref: https://github.com/curl/curl/pull/9768#issuecomment-1286675916
Reported-by: Daniel Stenberg
Follow up to #9769

.github/workflows/appveyor-status.yml

index 53112f3797392ba7a0d826857a8c1655ede051df..a97bf86c38c0208592e758f3244ce882d16412dc 100644 (file)
@@ -28,7 +28,7 @@ jobs:
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\r
         run: |\r
           echo ${APPVEYOR_TARGET_URL} | sed 's/\/project\//\/api\/projects\//' | xargs -t -n1 curl -s | \\r
-            jq -c '.build.jobs[] | {target_url: (($target_url | sub("s\\/\\d+"; "/job/")) + .jobId),\r
+            jq -c '.build.jobs[] | {target_url: ($target_url + "/job/" + .jobId),\r
                                     context: (.name | sub("^(Environment: )?"; "AppVeyor / ")),\r
                                     state: (.status | sub("queued"; "pending")\r
                                                     | sub("running"; "pending")\r