]> OCCT Git - occt.git/commitdiff
Testing - Update GH testing to filter completed reference branch testing #365
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Thu, 13 Feb 2025 10:24:12 +0000 (11:24 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Feb 2025 10:24:12 +0000 (10:24 +0000)
.github/workflows/build-and-test-multiplatform.yml

index ab88cc90a935a5b9cdc752dd2b3c5bdecd2b06ed..93ec41b40cec7630ea228fa715199fb56d3e2788 100644 (file)
@@ -1761,7 +1761,7 @@ jobs:
         run: |
           response=$(curl -s \
             -H "Accept: application/vnd.github.v3+json" \
-            "https://api.github.com/repos/${{ github.repository }}/actions/runs?branch=${{ github.event.pull_request.base.ref }}")
+            "https://api.github.com/repos/${{ github.repository }}/actions/runs?branch=${{ github.event.pull_request.base.ref }}&status=completed")
           latest_run_id=$(echo "$response" | jq -r '.workflow_runs[] | select(.name=="Build and Test OCCT on Multiple Platforms") | .id' | head -n 1)
           echo "latest_run_id=$latest_run_id" >> $GITHUB_ENV