diff --git a/.github/workflows/notifications.yml b/.github/workflows/notifications.yml index ef6a1d0f4..116e5c09a 100644 --- a/.github/workflows/notifications.yml +++ b/.github/workflows/notifications.yml @@ -34,9 +34,9 @@ jobs: shell: bash run: | pr=$(\ - curl -sL -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ inputs.token }}" \ + curl -sL -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ github.token }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/${{ github.repository }}/commits/${{ github.event.after }}/pulls \ + https://api.github.com/repos/${{ github.repository }}/commits/${{ github.event.workflow_run.head_sha }}/pulls \ | jq .[0].number ) if [ -z "${pr}" ]