1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-01 17:36:21 +03:00

Testing - Summarize only with success reference #377

Fix GitHub Actions workflow to filter completed runs by success status
This commit is contained in:
Pasukhin Dmitry 2025-02-17 15:11:03 +01:00 committed by GitHub
parent 04a15e36f7
commit ed6005b75a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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