From 3a8652189a605cf718d05bed955f256d2f3f6ce5 Mon Sep 17 00:00:00 2001 From: cberg-aot <93226309+cberg-aot@users.noreply.github.com> Date: Mon, 8 Jan 2024 15:14:43 -0800 Subject: [PATCH] fix: adding fix for pr pull (#1060) --- .github/workflows/notifications.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}" ]