From d0107ab02caa6dc7d080e4b05e0d6de0c777053b Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Sat, 1 Feb 2025 08:08:48 +0000 Subject: [PATCH] Use ruff-action's version detection (#13286) --- .github/workflows/lint.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c8444c6a1..a3b5cf7ae 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -26,16 +26,11 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false - - name: Get Ruff version from pyproject.toml - run: | - RUFF_VERSION=$(awk -F'[="]' '/\[project\.optional-dependencies\]/ {p=1} /ruff/ {if (p) print $4}' pyproject.toml) - echo "RUFF_VERSION=$RUFF_VERSION" >> $GITHUB_ENV - - name: Install Ruff ${{ env.RUFF_VERSION }} + - name: Install Ruff uses: astral-sh/ruff-action@v3 with: args: --version - version: ${{ env.RUFF_VERSION }} - name: Lint with Ruff run: ruff check --output-format=github