]> OCCT Git - occt.git/commitdiff
Testing - Summarize only with success reference #377
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Mon, 17 Feb 2025 14:11:03 +0000 (15:11 +0100)
committerGitHub <noreply@github.com>
Mon, 17 Feb 2025 14:11:03 +0000 (14:11 +0000)
Fix GitHub Actions workflow to filter completed runs by success status

.github/workflows/build-and-test-multiplatform.yml

index 4667e95696e88e35e89e28c04007452c76f149ec..c43ee9c7ce560e64a393ac176c309cc28f5ac942 100644 (file)
@@ -1735,7 +1735,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 }}&status=completed")
+            "https://api.github.com/repos/${{ github.repository }}/actions/runs?branch=${{ github.event.pull_request.base.ref }}&status=success")
           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