diff options
author | Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> | 2024-09-04 10:11:49 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 10:11:49 +0530 |
commit | 0fb05bbf0ffc9c341f56ab5e3ee1421e3044a4ac (patch) | |
tree | 9ba829bf18fb946bb9c6206749d0e57a198bcad5 | |
parent | 2db4d12aae588aeb03c9c6ece5b0cd7e5fb71a7c (diff) | |
download | vyos-workflow-test-temp-0fb05bbf0ffc9c341f56ab5e3ee1421e3044a4ac.tar.gz vyos-workflow-test-temp-0fb05bbf0ffc9c341f56ab5e3ee1421e3044a4ac.zip |
T0000: Update
-rw-r--r-- | .github/workflows/darker-lint.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml index deeabd4..746c09b 100644 --- a/.github/workflows/darker-lint.yml +++ b/.github/workflows/darker-lint.yml @@ -50,6 +50,10 @@ jobs: - name: Analyze Code run: | cd repo - git checkout origin/base -- ruff.toml - cat ruff.toml + 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" + else + echo "No ruff.toml found in base repo" + fi darker -r origin/base --check --diff --lint "ruff check" --color .
\ No newline at end of file |