From: Josh Soref Date: Wed, 17 Feb 2021 18:06:16 +0000 (-0500) Subject: Try checking out merge/head appropriately X-Git-Tag: dnsdist-1.6.0-alpha2~24^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10101%2Fhead;p=thirdparty%2Fpdns.git Try checking out merge/head appropriately --- 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: