From 85027dd5350c92b00036e6d76550c865eddf3c12 Mon Sep 17 00:00:00 2001 From: "Schmieder, Jacob" Date: Mon, 2 Sep 2024 08:38:38 +0000 Subject: [PATCH] trigger ruff only on changes in python files --- .github/workflows/ruff.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 1e5c277..df0152c 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -1,9 +1,11 @@ name: Ruff -on: push +on: + push: + paths: + - '**.py' jobs: ruff: runs-on: ubuntu-latest - if: ${{ github.event_name == 'pull_request' || (github.event_name == 'push') }} steps: - uses: actions/checkout@v4 - uses: chartboost/ruff-action@v1 \ No newline at end of file