Skip to content

Commit 01f3ef4

Browse files
authored
[ci]: Remove changed files actions (#16788)
## Summary tj-actions/changed-files no longer exists due to a malicious commit. This PR removes it so that we can re-enable CI. We can follow up with a proper replacement in a separate PR
1 parent 2de8455 commit 01f3ef4

File tree

1 file changed

+59
-61
lines changed

1 file changed

+59
-61
lines changed

.github/workflows/ci.yaml

Lines changed: 59 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: CI
22

3-
permissions: {}
3+
permissions: { }
44

55
on:
66
push:
7-
branches: [main]
7+
branches: [ main ]
88
pull_request:
99
workflow_dispatch:
1010

@@ -26,76 +26,74 @@ jobs:
2626
runs-on: ubuntu-latest
2727
outputs:
2828
# Flag that is raised when any code that affects parser is changed
29-
parser: ${{ steps.changed.outputs.parser_any_changed }}
29+
parser: "true"
3030
# Flag that is raised when any code that affects linter is changed
31-
linter: ${{ steps.changed.outputs.linter_any_changed }}
31+
linter: "true"
3232
# Flag that is raised when any code that affects formatter is changed
33-
formatter: ${{ steps.changed.outputs.formatter_any_changed }}
33+
formatter: "true"
3434
# Flag that is raised when any code is changed
3535
# This is superset of the linter and formatter
36-
code: ${{ steps.changed.outputs.code_any_changed }}
36+
code: "true"
3737
# Flag that is raised when any code that affects the fuzzer is changed
38-
fuzz: ${{ steps.changed.outputs.fuzz_any_changed }}
38+
fuzz: "true"
3939
steps:
4040
- uses: actions/checkout@v4
4141
with:
4242
fetch-depth: 0
4343
persist-credentials: false
4444

45-
- uses: tj-actions/changed-files@v45
46-
id: changed
47-
with:
48-
files_yaml: |
49-
parser:
50-
- Cargo.toml
51-
- Cargo.lock
52-
- crates/ruff_python_trivia/**
53-
- crates/ruff_source_file/**
54-
- crates/ruff_text_size/**
55-
- crates/ruff_python_ast/**
56-
- crates/ruff_python_parser/**
57-
- python/py-fuzzer/**
58-
- .github/workflows/ci.yaml
59-
60-
linter:
61-
- Cargo.toml
62-
- Cargo.lock
63-
- crates/**
64-
- "!crates/red_knot*/**"
65-
- "!crates/ruff_python_formatter/**"
66-
- "!crates/ruff_formatter/**"
67-
- "!crates/ruff_dev/**"
68-
- scripts/*
69-
- python/**
70-
- .github/workflows/ci.yaml
71-
72-
formatter:
73-
- Cargo.toml
74-
- Cargo.lock
75-
- crates/ruff_python_formatter/**
76-
- crates/ruff_formatter/**
77-
- crates/ruff_python_trivia/**
78-
- crates/ruff_python_ast/**
79-
- crates/ruff_source_file/**
80-
- crates/ruff_python_index/**
81-
- crates/ruff_text_size/**
82-
- crates/ruff_python_parser/**
83-
- crates/ruff_dev/**
84-
- scripts/*
85-
- python/**
86-
- .github/workflows/ci.yaml
87-
88-
fuzz:
89-
- fuzz/Cargo.toml
90-
- fuzz/Cargo.lock
91-
- fuzz/fuzz_targets/**
92-
93-
code:
94-
- "**/*"
95-
- "!**/*.md"
96-
- "crates/red_knot_python_semantic/resources/mdtest/**/*.md"
97-
- "!docs/**"
98-
- "!assets/**"
45+
# TODO: Replace with plain git command?
46+
# files_yaml: |
47+
# parser:
48+
# - Cargo.toml
49+
# - Cargo.lock
50+
# - crates/ruff_python_trivia/**
51+
# - crates/ruff_source_file/**
52+
# - crates/ruff_text_size/**
53+
# - crates/ruff_python_ast/**
54+
# - crates/ruff_python_parser/**
55+
# - python/py-fuzzer/**
56+
# - .github/workflows/ci.yaml
57+
#
58+
# linter:
59+
# - Cargo.toml
60+
# - Cargo.lock
61+
# - crates/**
62+
# - "!crates/red_knot*/**"
63+
# - "!crates/ruff_python_formatter/**"
64+
# - "!crates/ruff_formatter/**"
65+
# - "!crates/ruff_dev/**"
66+
# - scripts/*
67+
# - python/**
68+
# - .github/workflows/ci.yaml
69+
#
70+
# formatter:
71+
# - Cargo.toml
72+
# - Cargo.lock
73+
# - crates/ruff_python_formatter/**
74+
# - crates/ruff_formatter/**
75+
# - crates/ruff_python_trivia/**
76+
# - crates/ruff_python_ast/**
77+
# - crates/ruff_source_file/**
78+
# - crates/ruff_python_index/**
79+
# - crates/ruff_text_size/**
80+
# - crates/ruff_python_parser/**
81+
# - crates/ruff_dev/**
82+
# - scripts/*
83+
# - python/**
84+
# - .github/workflows/ci.yaml
85+
#
86+
# fuzz:
87+
# - fuzz/Cargo.toml
88+
# - fuzz/Cargo.lock
89+
# - fuzz/fuzz_targets/**
90+
#
91+
# code:
92+
# - "**/*"
93+
# - "!**/*.md"
94+
# - "crates/red_knot_python_semantic/resources/mdtest/**/*.md"
95+
# - "!docs/**"
96+
# - "!assets/**"
9997

10098
cargo-fmt:
10199
name: "cargo fmt"

0 commit comments

Comments
 (0)