diff --git a/action.yml b/action.yml index b393b62..a0c330c 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/search/issues\?q\=repo:${{ github.repository }}+is:pr+is:merged \ - | jq .items[0].number + | jq '.items | sort_by(.pull_request.merged_at) | reverse'[0].number ) if [ -z "${pr}" ]