From e5ab5d43a6b082848d57e51562ab38b95511cf3d Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 6 Dec 2024 08:49:52 +0100 Subject: [PATCH] README.md: astral-sh/ruff-action@v1 --> v2 (#21) README.md upgraded to match https://github.com/astral-sh/ruff-action/releases ```diff - - uses: astral-sh/ruff-action@v1 + - uses: astral-sh/ruff-action@v2 ``` --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 19f491a..a12d31c 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ fix). ### Specify a different source directory ```yaml -- uses: astral-sh/ruff-action@v1 +- uses: astral-sh/ruff-action@v2 with: src: "./src" ``` @@ -50,7 +50,7 @@ fix). ### Specify multiple files ```yaml -- uses: astral-sh/ruff-action@v1 +- uses: astral-sh/ruff-action@v2 with: src: >- path/to/file1.py @@ -62,7 +62,7 @@ fix). This action adds ruff to the PATH, so you can use it in subsequent steps. ```yaml -- uses: astral-sh/ruff-action@v1 +- uses: astral-sh/ruff-action@v2 - run: ruff check --fix - run: ruff format ``` @@ -70,7 +70,7 @@ This action adds ruff to the PATH, so you can use it in subsequent steps. ### Use `ruff format` ```yaml -- uses: astral-sh/ruff-action@v1 +- uses: astral-sh/ruff-action@v2 with: args: "format --check" ```