Skip to content

Commit

Permalink
use dorny/paths-filter with git commands instead of GitHub API (#3969)
Browse files Browse the repository at this point in the history
* 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 5b6255e.

* try github.ref as base

* testing frouioui's solution to the same problem

* add todo comment

---------

Co-authored-by: Matthias Hörtenhuber <mashehu@users.noreply.github.com>
  • Loading branch information
mirpedrol and mashehu committed Oct 13, 2023
1 parent 709fdc9 commit e639122
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e639122

Please sign in to comment.