Commit 7bc2a47
committed
fix: simplify test workflows with conditional steps and permissions
- Merge `test` and `test-and-format` workflows into a single workflow with conditional steps for `push` and `pull_request` events.
- Dynamically adjust `contents` permission to `write` for `push` and `read` for `pull_request`.
- Update `actions/checkout` configuration to handle branch refs and persist credentials conditionally.
- Restrict auto-formatting and commit steps to `push` events only.
- Ensure `ruff format --check` runs conditionally on `pull_request` events.1 parent f7f765e commit 7bc2a47
1 file changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| |||
210 | 211 | | |
211 | 212 | | |
212 | 213 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 214 | + | |
217 | 215 | | |
218 | 216 | | |
219 | 217 | | |
| |||
226 | 224 | | |
227 | 225 | | |
228 | 226 | | |
229 | | - | |
230 | | - | |
231 | | - | |
| 227 | + | |
232 | 228 | | |
233 | 229 | | |
234 | 230 | | |
| |||
0 commit comments