diff --git a/.github/workflows/regression-report.yml b/.github/workflows/regression-report.yml index 9685eecd7d4..48db51b8997 100644 --- a/.github/workflows/regression-report.yml +++ b/.github/workflows/regression-report.yml @@ -59,6 +59,19 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Check PR status + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_URL: ${{ github.event.issue.pull_request.url }} + run: | + PR_STATE=$(curl --fail-with-body -s -H "Authorization: token $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + "$PR_URL" | jq -r .state) + if [ "$PR_STATE" != "open" ]; then + echo "PR is not active" + exit 1 + fi + - name: Parse comment id: parse env: