mirror of https://github.com/astral-sh/ruff
Merge changed steps using `files_yaml` (#5923)
This commit is contained in:
parent
bcec2f0c4c
commit
4759ffc994
|
|
@ -23,35 +23,33 @@ jobs:
|
||||||
name: "Determine changes"
|
name: "Determine changes"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
linter: ${{ steps.linter.outputs.any_changed }}
|
linter: ${{ steps.changed.outputs.linter_any_changed }}
|
||||||
formatter: ${{ steps.formatter.outputs.any_changed }}
|
formatter: ${{ steps.changed.outputs.formatter_any_changed }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: tj-actions/changed-files@v37
|
- uses: tj-actions/changed-files@v37
|
||||||
id: linter
|
id: changed
|
||||||
with:
|
with:
|
||||||
files: |
|
files_yaml: |
|
||||||
Cargo.toml
|
linter:
|
||||||
Cargo.lock
|
- Cargo.toml
|
||||||
crates/**
|
- Cargo.lock
|
||||||
!crates/ruff_python_formatter/**
|
- crates/**
|
||||||
!crates/ruff_formatter/**
|
- "!crates/ruff_python_formatter/**"
|
||||||
!crates/ruff_dev/**
|
- "!crates/ruff_formatter/**"
|
||||||
!crates/ruff_shrinking/**
|
- "!crates/ruff_dev/**"
|
||||||
|
- "!crates/ruff_shrinking/**"
|
||||||
|
|
||||||
- uses: tj-actions/changed-files@v37
|
formatter:
|
||||||
id: formatter
|
- Cargo.toml
|
||||||
with:
|
- Cargo.lock
|
||||||
files: |
|
- crates/ruff_python_formatter/**
|
||||||
Cargo.toml
|
- crates/ruff_formatter/**
|
||||||
Cargo.lock
|
- crates/ruff_python_trivia/**
|
||||||
crates/ruff_python_formatter/**
|
- crates/ruff_python_ast/**
|
||||||
crates/ruff_formatter/**
|
|
||||||
crates/ruff_python_trivia/**
|
|
||||||
crates/ruff_python_ast/**
|
|
||||||
|
|
||||||
|
|
||||||
cargo-fmt:
|
cargo-fmt:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue