Skip to content

chore: try to get output from reviewdog? #5

chore: try to get output from reviewdog?

chore: try to get output from reviewdog? #5

Workflow file for this run

name: "check with ruff"
on:
push:
branches: "**"
tags-ignore: ["**"]
pull_request:
permissions:
contents: "read"
checks: "write"
issues: "write"
pull-requests: "write"
jobs:
check:
# Only run on PRs if the source branch is on someone else's repo
if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}"
runs-on: ubuntu-latest
steps:
- name: "setup"
uses: "KyoriPowered/.github/.github/actions/setup-python-env@trunk"
- name: "setup / install reviewdog"
uses: "reviewdog/action-setup@v1.3.0"
with:
reviewdog_version: "latest"
- name: "setup / install deps"
id: "install"
run: "poetry install"
- name: "run ruff / apply format"
env:
REVIEWDOG_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
poetry run ruff format --diff | reviewdog -reporter=github-check -f=diff -f.diff.strip=0 -name=ruff-format -filter-mode=nofilter -fail-on-error
- name: "run ruff / check"
if: "${{ always() && steps.install.conclusion == 'success' }}"
run: "poetry run ruff check --output-format=github"