From 6573ac074e3c364f5750e4ca3060b6b0f5ca1ff5 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Wed, 17 Feb 2021 13:06:16 -0500 Subject: [PATCH] Try checking out merge/head appropriately --- .github/workflows/spelling.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index 0662bd4ac5..554560b90f 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -17,9 +17,16 @@ jobs: name: Spell checking runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2.0.0 + - name: checkout-merge + if: "contains(github.event_name, 'pull_request')" + uses: actions/checkout@v2.0.0 + with: + ref: refs/pull/${{github.event.pull_request.number}}/merge + fetch-depth: 5 + - name: checkout + if: "!contains(github.event_name, 'pull_request')" + uses: actions/checkout@v2.0.0 with: - ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 5 - uses: check-spelling/check-spelling@0.0.17-alpha with: -- 2.47.2