1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-02 17:46:22 +03:00

Testing - Update GH testing to filter completed reference branch testing #365

This commit is contained in:
Pasukhin Dmitry 2025-02-13 11:24:12 +01:00 committed by GitHub
parent fb73c3b712
commit 5a186c7b1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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