We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef89246 commit 5027afaCopy full SHA for 5027afa
1 file changed
.github/workflows/ruff.yaml
@@ -14,14 +14,20 @@ jobs:
14
- name: Checkout repository
15
uses: actions/checkout@v4
16
17
+ - name: Extract ruff version from .pre-commit-config.yaml
18
+ id: get-version
19
+ run: |
20
+ version=$(grep -A 2 'repo: https://github.com/astral-sh/ruff-pre-commit' .pre-commit-config.yaml | grep 'rev:' | sed 's/.*rev: v\?//')
21
+ echo "version=${version}" >> $GITHUB_OUTPUT
22
+
23
- name: Check Ruff Linting
24
uses: astral-sh/ruff-action@v3
25
with:
- version: "0.15.8"
26
+ version: ${{ steps.get-version.outputs.version }}
27
args: "check --select I"
28
29
- name: Check Ruff Formatting
30
31
32
33
args: "format --check --diff"
0 commit comments