Преглед на файлове

Merge pull request #14909 from jakesmith/hpcc-25809-gh-test-eclhelper-fix

HPCC-25809 Fix github test-helper action

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman преди 4 години
родител
ревизия
e673e33574
променени са 1 файла, в които са добавени 7 реда и са изтрити 3 реда
  1. 7 3
      .github/workflows/test-eclhelper.yml

+ 7 - 3
.github/workflows/test-eclhelper.yml

@@ -11,9 +11,13 @@ jobs:
     name: "Check eclhelper interface"
     name: "Check eclhelper interface"
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     steps:
     steps:
-      - name: Checkout
+      - name: Checkout pr
         uses: actions/checkout@v2
         uses: actions/checkout@v2
         with:
         with:
-          fetch-depth: 2
+          fetch-depth: 1
+      - name: Fetch base
+        run: |
+          git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin ${{ github.event.pull_request.base.sha }}
       - name: Check eclhelper
       - name: Check eclhelper
-        run: git diff HEAD^ --exit-code -- rtl/include/eclhelper.hpp
+        run: |
+          git diff ${{ github.event.pull_request.base.sha }} --exit-code -- rtl/include/eclhelper.hpp