summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorVijayakumar A <36878324+kumvijaya@users.noreply.github.com>2024-08-29 01:17:30 +0530
committerGitHub <noreply@github.com>2024-08-29 01:17:30 +0530
commitd1a50ed817110f347152957973d41b4843d8a514 (patch)
treea609f15bf2b4e177a1b0a6f6d3684ad8ecf0fa44 /.github/workflows
parente01d892d0cf6052fc555092bea4a84c9070513c4 (diff)
parent81e918c0061e2e55886efed0e4069207b54041ef (diff)
downloadvyos-workflow-test-temp-d1a50ed817110f347152957973d41b4843d8a514.tar.gz
vyos-workflow-test-temp-d1a50ed817110f347152957973d41b4843d8a514.zip
Merge pull request #44 from kumvijaya/current
T0000: test
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/darker-lint.yml27
1 files changed, 5 insertions, 22 deletions
diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml
index 974ffa0..c42c822 100644
--- a/.github/workflows/darker-lint.yml
+++ b/.github/workflows/darker-lint.yml
@@ -9,9 +9,6 @@ on:
permissions:
pull-requests: write
contents: read
-
-env:
- base_ref: ${{ github.event.pull_request.base.ref }}
jobs:
darker-lint:
@@ -20,36 +17,22 @@ jobs:
pull-requests: write
contents: read
steps:
- - uses: actions/checkout@v4
+ - name: Checkout head
+ uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- - uses: actions/setup-python@v5
+ - name: Fetch base
+ run: |
+ git fetch https://github.com/${{ github.event.pull_request.base.repo.full_name }} ${{ github.event.pull_request.base.ref }}:refs/remotes/origin/base
- name: darker install
run: |
pip install git+https://github.com/akaihola/darker.git@master ruff>=0.0.292
- # - name: Fetch base branch
- # run: |
- # git fetch origin ${base_ref}:refs/remotes/origin/base-current
-
- # - name: Fetch base branch
- # run: |
- # git fetch origin ${base_ref}:${base_ref}
-
-
- - name: Fetch base and head commits
- run: |
- git fetch https://github.com/${{ github.event.pull_request.base.repo.full_name }} ${{ github.event.pull_request.base.ref }}:refs/remotes/origin/base
- # git fetch origin ${{ github.event.pull_request.base.sha }}:refs/remotes/origin/temp-base
- # git fetch origin ${{ github.event.pull_request.head.sha }}:refs/remotes/origin/temp-head
- # git branch temp-base refs/remotes/origin/temp-base
- # git branch temp-head refs/remotes/origin/temp-head
-
- name: Analyze Code
run: |
darker -r origin/base --check --diff --lint "ruff check" --color . \ No newline at end of file