diff options
| author | Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> | 2024-08-28 00:32:27 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-28 00:32:27 +0530 |
| commit | 80b828b0426cb2ed9d36e2d49b0bae0f4517e0a2 (patch) | |
| tree | 50705c34980a428782f1410d5b2d978a529d8149 /.github/workflows | |
| parent | 146a07b20d0308bea47dadbe465d4feba091ce0c (diff) | |
| parent | 0809d1a68eb08c8227872d5aae44b3e1c63ad3df (diff) | |
| download | vyos-workflow-test-temp-80b828b0426cb2ed9d36e2d49b0bae0f4517e0a2.tar.gz vyos-workflow-test-temp-80b828b0426cb2ed9d36e2d49b0bae0f4517e0a2.zip | |
Merge pull request #39 from kumvijaya/current
T0000: test 2
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/darker-lint.yml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml index a925d58..e3104d8 100644 --- a/.github/workflows/darker-lint.yml +++ b/.github/workflows/darker-lint.yml @@ -23,7 +23,8 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - ref: ${{ github.event.pull_request.head.ref }} + fetch-tags: true + # ref: ${{ github.event.pull_request.head.ref }} - uses: actions/setup-python@v5 @@ -31,10 +32,16 @@ jobs: run: | pip install git+https://github.com/akaihola/darker.git@master ruff>=0.0.292 - - name: Fetch base branch + # - name: Fetch base branch + # run: | + # git fetch origin ${base_ref}:refs/remotes/origin/base-current + + - name: Fetch base and head commits run: | - git fetch origin ${base_ref}:refs/remotes/origin/base-current + git fetch origin ${{ github.event.pull_request.base.sha }}:refs/remotes/origin/base + git fetch origin ${{ github.event.pull_request.head.sha }}:refs/remotes/origin/head + - name: Analyze Code run: | - darker -r origin/base-current --check --diff --lint "ruff check" --color .
\ No newline at end of file + darker -r origin/base...origin/head --check --diff --lint "ruff check" --color .
\ No newline at end of file |
