浏览代码

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"
     runs-on: ubuntu-latest
     steps:
-      - name: Checkout
+      - name: Checkout pr
         uses: actions/checkout@v2
         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
-        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