summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-03-16 18:27:41 +0100
committerGitHub <noreply@github.com>2021-03-16 17:27:41 +0000
commit2aab415f3d5174d1a5110c93639c8647d898c0b3 (patch)
tree901550c946fb9b0f3e268dc53df0ff982f7146fe /.github/workflows
parentb304b4bdb0f703569b76696c219670bd2d5dc680 (diff)
downloadspack-2aab415f3d5174d1a5110c93639c8647d898c0b3.tar.gz
spack-2aab415f3d5174d1a5110c93639c8647d898c0b3.tar.bz2
spack-2aab415f3d5174d1a5110c93639c8647d898c0b3.tar.xz
spack-2aab415f3d5174d1a5110c93639c8647d898c0b3.zip
The action to detect changes needs a repository to be checked out on push event (#22324)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/unit_tests.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml
index 7fcd61d9f4..b36d331f6c 100644
--- a/.github/workflows/unit_tests.yaml
+++ b/.github/workflows/unit_tests.yaml
@@ -77,6 +77,10 @@ jobs:
packages: ${{ steps.filter.outputs.packages }}
with_coverage: ${{ steps.coverage.outputs.with_coverage }}
steps:
+ - uses: actions/checkout@v2
+ if: ${{ github.event_name == 'push' }}
+ with:
+ fetch-depth: 0
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v2
id: filter