summaryrefslogtreecommitdiff
path: root/.github/workflows/ruff-lint-2.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ruff-lint-2.yml')
-rw-r--r--.github/workflows/ruff-lint-2.yml56
1 files changed, 0 insertions, 56 deletions
diff --git a/.github/workflows/ruff-lint-2.yml b/.github/workflows/ruff-lint-2.yml
deleted file mode 100644
index 1c5d54e..0000000
--- a/.github/workflows/ruff-lint-2.yml
+++ /dev/null
@@ -1,56 +0,0 @@
----
-name: Ruff Lint 2
-
-on:
- pull_request:
- branches:
- - current
-
-permissions:
- pull-requests: write
- contents: read
-
-jobs:
- ruff-lint-2:
- runs-on: ubuntu-latest
- permissions:
- pull-requests: write
- contents: read
- steps:
- - name: Checkout reusable actions repo
- uses: actions/checkout@v3
- with:
- repository: vyos/.github
- path: reusable-actions
- ref: current
-
- - 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 }}
- path: repo
-
- - name: Fetch base
- run: |
- cd repo
- git fetch https://github.com/${{ github.event.pull_request.base.repo.full_name }} ${{ github.event.pull_request.base.ref }}:refs/remotes/origin/base
-
- - name: Setup python
- uses: actions/setup-python@v5
- with:
- python-version: '3.11'
-
- - name: Get changed files
- id: changed-files
- run: |
- cd repo
- git diff --name-only origin/base...${{ github.event.pull_request.head.ref }} > changed_files.txt
-
- - name: Run ruff on changed files
- uses: ChartBoost/ruff-action@v1
- with:
- files: |
- $(cat repo/changed_files.txt) \ No newline at end of file