From 439c001fbc0a96fa4f2202d55ab967f2d6af3aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlia=20Mir=20Pedrol?= Date: Fri, 13 Oct 2023 19:44:57 +0200 Subject: [PATCH] use dorny/paths-filter with git commands instead of GitHub API (#3969) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * use dorny/paths-filter with git commands instead of GitHub API * detect changes against master branch * Revert "detect changes against master branch" This reverts commit 5b6255e3116c5b708ad198437925ef2c7daf32fa. * try github.ref as base * testing frouioui's solution to the same problem * add todo comment --------- Co-authored-by: Matthias Hörtenhuber --- .github/workflows/test.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 16ac2de38c6..917f48f6d95 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -56,11 +56,12 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: dorny/paths-filter@v2 + # TODO: change back to using dorny/paths-filter when https://github.com/dorny/paths-filter/pull/133 is implemented + - uses: frouioui/paths-filter@main id: filter with: filters: "tests/config/pytest_modules.yml" - token: "${{ secrets.GITHUB_TOKEN }}" + token: "" nf-core-lint: runs-on: ubuntu-20.04 @@ -367,11 +368,12 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: dorny/paths-filter@v2 + # TODO: change back to using dorny/paths-filter when https://github.com/dorny/paths-filter/pull/133 is implemented + - uses: frouioui/paths-filter@main id: filter with: filters: ".github/modules.yml" - token: "${{ secrets.GITHUB_TOKEN }}" + token: "" nf-test: runs-on: ubuntu-20.04