diff options
| author | Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> | 2024-09-14 15:35:33 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-14 15:35:33 +0530 |
| commit | 908b1f811dbd74a7fe17bbe13ce0bffd1fb75196 (patch) | |
| tree | ff52214f32551b4576dbf5843437f14745673065 /.github/workflows | |
| parent | a808b2d7331b44196501b9bbe4bc7dfa67cbd134 (diff) | |
| parent | 05f4b8eb2967e98e7988aceee4f57aded56a7027 (diff) | |
| download | vyos-workflow-test-temp-908b1f811dbd74a7fe17bbe13ce0bffd1fb75196.tar.gz vyos-workflow-test-temp-908b1f811dbd74a7fe17bbe13ce0bffd1fb75196.zip | |
Merge pull request #56 from kumvijaya/current
T6678: no change in py
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ruff-lint.yml | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/.github/workflows/ruff-lint.yml b/.github/workflows/ruff-lint.yml index e875dea..a9e82be 100644 --- a/.github/workflows/ruff-lint.yml +++ b/.github/workflows/ruff-lint.yml @@ -21,18 +21,11 @@ jobs: id: py-filter uses: dorny/paths-filter@v3 with: - list-files: json + list-files: shell filters: | python: - '**/*.py' - - name: Get py changed files - if: steps.py-filter.outputs.python == 'true' - id: py-changed-files - run: | - files=$(echo '${{ steps.py-filter.outputs.python_files }}' | jq -r 'join(" ")') - echo "files=${files}" >> $GITHUB_OUTPUT - - name: Install ruff if: steps.py-filter.outputs.python == 'true' run: | @@ -41,9 +34,9 @@ jobs: - name: Run ruff check on changed files if: steps.py-filter.outputs.python == 'true' run: | - ruff check ${{ steps.py-changed-files.outputs.files }} + ruff check ${{ steps.py-filter.outputs.python_files }} - name: Run ruff format on changed files if: always() && steps.py-filter.outputs.python == 'true' run: | - ruff format --diff ${{ steps.py-changed-files.outputs.files }}
\ No newline at end of file + ruff format --diff ${{ steps.py-filter.outputs.python_files }}
\ No newline at end of file |
