From eab5b30b4fa0d8a6f010d083d0c7e4620685c45e Mon Sep 17 00:00:00 2001 From: "Maarten A. Breddels" Date: Thu, 24 Oct 2024 13:09:45 +0200 Subject: [PATCH] ci,fix: use pr number from workflow_run event --- .github/workflows/pycafe.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pycafe.yml b/.github/workflows/pycafe.yml index 6730b59..d44b037 100644 --- a/.github/workflows/pycafe.yml +++ b/.github/workflows/pycafe.yml @@ -15,6 +15,6 @@ jobs: - name: Create PyCafe status link run: | pip install PyGithub - python .github/pycafe-create-status.py ${{ github.event.number }} ${{ github.event.workflow_run.workflow_id }} + python .github/pycafe-create-status.py ${{ github.event.workflow_run.pull_requests[0].number }} ${{ github.event.workflow_run.id }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}