From b98e0202ec38682b1f1b646eda1b09c9b8c38689 Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Sat, 14 Sep 2024 15:30:09 +0530 Subject: T6678: files listing approach updated --- .github/workflows/ruff-lint.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ruff-lint.yml b/.github/workflows/ruff-lint.yml index e875dea..499a971 100644 --- a/.github/workflows/ruff-lint.yml +++ b/.github/workflows/ruff-lint.yml @@ -21,17 +21,17 @@ 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: 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' @@ -41,9 +41,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 -- cgit v1.2.3 From 05f4b8eb2967e98e7988aceee4f57aded56a7027 Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Sat, 14 Sep 2024 15:35:02 +0530 Subject: T6678: files listing approach updated --- .github/workflows/ruff-lint.yml | 7 ------- 1 file changed, 7 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ruff-lint.yml b/.github/workflows/ruff-lint.yml index 499a971..a9e82be 100644 --- a/.github/workflows/ruff-lint.yml +++ b/.github/workflows/ruff-lint.yml @@ -26,13 +26,6 @@ jobs: 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: | -- cgit v1.2.3