-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add a way to retrieve the output #78
Comments
Please see this comment for saving to a file: #28 (comment) |
Using it like this will invoke ruff to only print the version. - uses: astral-sh/ruff-action@v3
with:
args: "--version" I will maybe add a feature that you can set args to an empty string so ruff is not invoked at all, e.g. |
Thanks!!! |
one thing is not clear how can I get the output in the pr as annotations? |
Have you followed the issue I linked but you still don't see annotations? |
Hi I've changed my action to: ruff-linter:
runs-on: [self-hosted, Ubuntu-22.04]
permissions:
contents: read
pull-requests: write
steps:
# need to go first as it cleans the directory
- uses: actions/checkout@v4
with:
clean: true
- uses: actions-ext/astral-sh-ruff-action@v3
with:
version: ${{ env.RUFF_VERSION }}
ruff-format:
runs-on: [self-hosted, Ubuntu-22.04]
permissions:
contents: read
pull-requests: write
steps:
# need to go first as it cleans the directory
- uses: actions/checkout@v4
with:
clean: true
- uses: actions-ext/astral-sh-ruff-action@v3
with:
version: ${{ env.RUFF_VERSION }}
args: "format --diff"
Now I get the annotations. questions:
|
Hi I need to save the output of the ruff check in a file.
Is it possible?
also how can I not run anything but just install the ruff command for later use? I need to use it in a script
The text was updated successfully, but these errors were encountered: