From 9751518d4810ea53bb8f5befaf256ecaa0746512 Mon Sep 17 00:00:00 2001 From: galargh Date: Tue, 8 Nov 2022 15:14:11 +0000 Subject: [PATCH] upgrade@3420693358 --- .github/workflows/apply.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/apply.yml b/.github/workflows/apply.yml index 8d8adc7..020f3a0 100644 --- a/.github/workflows/apply.yml +++ b/.github/workflows/apply.yml @@ -46,9 +46,11 @@ jobs: owner: process.env.GITHUB_REPOSITORY_OWNER, repo: process.env.GITHUB_REPOSITORY.slice(process.env.GITHUB_REPOSITORY_OWNER.length + 1), pull_number: search.items[0].number, - per_page: 1 + per_page: 100 }); - return pulls[0].sha; + return pulls.at(-1).sha; + } else { + return ''; } } else { return process.env.GITHUB_SHA;