Skip to content

Commit

Permalink
ci,fix: use pr number from workflow_run event
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Oct 24, 2024
1 parent 8f360e3 commit eab5b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pycafe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit eab5b30

Please sign in to comment.