diff --git a/.github/workflows/self-comment-slow-ci.yml b/.github/workflows/self-comment-slow-ci.yml index bfe848aae78a64..7b2c3d9e3e3fd5 100644 --- a/.github/workflows/self-comment-slow-ci.yml +++ b/.github/workflows/self-comment-slow-ci.yml @@ -51,6 +51,18 @@ jobs: /repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments \ -f "body=This comment contains /pytest, running the specified job..." + - name: Create Check Run + id: create_check_run + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_RUN_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs/${{ github.job }} + run: + gh api \ + --method POST \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + /repos/OWNER/REPO/statuses/SHA \ + -f "state=pending" -f "target_url=$GITHUB_RUN_URL" -f "description=The build succeeded!" -f "context=continuous-integration/pytest" - name: Create Check Run id: create_check_run