]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Try checking out merge/head appropriately 10101/head
authorJosh Soref <jsoref@users.noreply.github.com>
Wed, 17 Feb 2021 18:06:16 +0000 (13:06 -0500)
committerJosh Soref <jsoref@users.noreply.github.com>
Wed, 17 Feb 2021 18:06:16 +0000 (13:06 -0500)
.github/workflows/spelling.yml

index 0662bd4ac5af99538108ffbb4557011a676eb2f4..554560b90f800b90bd89a5caf098266237e180b4 100644 (file)
@@ -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: