From 441b5605a60897169e91d6431c8cee49fa453def Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Tue, 17 Sep 2024 13:33:29 +0200 Subject: [PATCH] fix(ci): check PR status from head branch name (#1707) --- .github/workflows/check-status.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-status.yml b/.github/workflows/check-status.yml index 3679986575..c9b593ee5f 100644 --- a/.github/workflows/check-status.yml +++ b/.github/workflows/check-status.yml @@ -47,7 +47,7 @@ jobs: const result = await github.rest.checks.listSuitesForRef({ owner: context.repo.owner, repo: context.repo.repo, - ref: "${{ github.event.pull_request.head.sha }}" + ref: "${{ github.head_ref }}" }); result.data.check_suites.forEach(({ app: { slug }, conclusion, id}) => { if (slug === 'github-actions') {