From 4c31e7600d7bbb7ed05dc030ca80f5ff0598168d Mon Sep 17 00:00:00 2001 From: Chris Berg Date: Wed, 25 Sep 2024 16:36:06 -0700 Subject: [PATCH] fix: added missing index to request --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 7fe9075..e822b84 100644 --- a/action.yml +++ b/action.yml @@ -54,7 +54,7 @@ runs: curl -sL -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ inputs.token }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/${{ github.repository }}/commits/${{ github.event.after }}/pulls \ - | jq .[0].number + | jq .items[0].number ) if [ -z "${pr}" ]