summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorVijayakumar A <36878324+kumvijaya@users.noreply.github.com>2024-09-12 00:49:29 +0530
committerGitHub <noreply@github.com>2024-09-12 00:49:29 +0530
commite7d873791a5dbfb141c4360ed21347677d5fc2e3 (patch)
treeffe5055678ddeacdfb5b580c0b0e2fbd3f17bf7b /.github
parent2c067857e4ef3e7968a6001a1ae3224fae69c937 (diff)
downloadvyos-workflow-test-temp-e7d873791a5dbfb141c4360ed21347677d5fc2e3.tar.gz
vyos-workflow-test-temp-e7d873791a5dbfb141c4360ed21347677d5fc2e3.zip
T6678: changed files
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ruff-lint.yml10
1 files changed, 7 insertions, 3 deletions
diff --git a/.github/workflows/ruff-lint.yml b/.github/workflows/ruff-lint.yml
index 7f93ccd..390086c 100644
--- a/.github/workflows/ruff-lint.yml
+++ b/.github/workflows/ruff-lint.yml
@@ -17,18 +17,22 @@ jobs:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- - name: Setup Python
- uses: actions/setup-python@v5
+ - name: Get changed py files
+ id: changed-py-files
+ uses: tj-actions/changed-files@v44
with:
- python-version: '3.11'
+ files: |
+ **.py
- name: Ruff Check
+ if: steps.changed-py-files.outputs.any_changed == 'true'
uses: chartboost/ruff-action@491342200cdd1cf4d5132a30ddc546b3b5bc531b
with:
args: check
changed-files: 'true'
- name: Ruff Format
+ if: steps.changed-py-files.outputs.any_changed == 'true'
uses: chartboost/ruff-action@491342200cdd1cf4d5132a30ddc546b3b5bc531b
if: always()
with: