diff options
author | Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> | 2024-09-06 14:13:11 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-06 14:13:11 +0530 |
commit | 2dd73ddef5a8f19d7176140dd079e769d2914280 (patch) | |
tree | 9843b5e5083919e87e1d1ddfbb072c2b0731dd66 | |
parent | dc3ffbe3c5c7963d857e413a7b8b0bea46d7006c (diff) | |
download | vyos-workflow-test-temp-2dd73ddef5a8f19d7176140dd079e769d2914280.tar.gz vyos-workflow-test-temp-2dd73ddef5a8f19d7176140dd079e769d2914280.zip |
Test
-rw-r--r-- | .github/workflows/ruff-lint.yml | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/.github/workflows/ruff-lint.yml b/.github/workflows/ruff-lint.yml index 8909621..5122334 100644 --- a/.github/workflows/ruff-lint.yml +++ b/.github/workflows/ruff-lint.yml @@ -20,21 +20,15 @@ jobs: - name: Setup python uses: actions/setup-python@v5 with: - python-version: '3.11' - - - name: Fetch base ruff config - run: | - git fetch https://github.com/${{ github.event.pull_request.base.repo.full_name }} ${{ github.event.pull_request.base.ref }}:refs/remotes/origin/base - if git ls-tree -r origin/base --name-only | grep -q '^ruff.toml$'; then - git checkout origin/base -- ruff.toml - echo "Using ruff.toml from base repo" - cat ruff.toml - else - echo "No ruff.toml found in base repo" - fi + python-version: '3.11' - name: Lint uses: chartboost/ruff-action@491342200cdd1cf4d5132a30ddc546b3b5bc531b with: args: check - changed-files: 'true'
\ No newline at end of file + changed-files: 'true' + + - uses: chartboost/ruff-action@491342200cdd1cf4d5132a30ddc546b3b5bc531b + with: + args: format --diff + changed-files: true
\ No newline at end of file |