Skip to content

Commit 3cebbd9

Browse files
authored
Fix linting job (#12786)
1 parent 49c3b21 commit 3cebbd9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/lint.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,17 @@ jobs:
2424

2525
steps:
2626
- uses: actions/checkout@v4
27+
- name: Get Ruff version from pyproject.toml
28+
run: |
29+
RUFF_VERSION=$(awk -F'[="]' '/\[project\.optional-dependencies\]/ {p=1} /ruff/ {if (p) print $4}' pyproject.toml)
30+
echo "RUFF_VERSION=$RUFF_VERSION" >> $GITHUB_ENV
31+
2732
- name: Install Ruff
2833
run: >
29-
RUFF_VERSION=$(awk -F'[="]' '/\[project\.optional-dependencies\]/ {p=1} /ruff/ {if (p) print $4}' pyproject.toml)
3034
curl --no-progress-meter --location --fail
3135
--proto '=https' --tlsv1.2
32-
"https://astral.sh/ruff/${RUFF_VERSION}/install.sh"
36+
--write-out "%{stderr}Downloaded: %{url}\n"
37+
"https://astral.sh/ruff/$RUFF_VERSION/install.sh"
3338
| sh
3439
3540
- name: Lint with Ruff

0 commit comments

Comments
 (0)