瀏覽代碼

Adjust "actions/checkout@v2" params to unshallow so that we can properly detect which files changed in the PR

Tianon Gravi 5 年之前
父節點
當前提交
3e21779c20
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      .github/workflows/test-pr.yml

+ 4 - 0
.github/workflows/test-pr.yml

@@ -14,6 +14,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
       - name: Check for Common Issues
         run: |
           git clone --depth 1 https://github.com/docker-library/bashbrew.git -b master ~/bashbrew
@@ -29,6 +31,8 @@ jobs:
       strategy: ${{ steps.generate-jobs.outputs.strategy }}
     steps:
       - uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
       - id: generate-jobs
         name: Generate Jobs
         run: |