|
63 | 63 | type: boolean |
64 | 64 | default: false |
65 | 65 | required: false |
66 | | - |
| 66 | + include-paths: |
| 67 | + description: 'Paths to include for Vale linting (multi-line). Only files matching these paths will be linted.' |
| 68 | + type: string |
| 69 | + default: '' |
| 70 | + required: false |
67 | 71 |
|
68 | 72 | permissions: |
69 | 73 | contents: read |
@@ -326,19 +330,21 @@ jobs: |
326 | 330 |
|
327 | 331 | - name: Bootstrap Action Workspace |
328 | 332 | if: > |
329 | | - env.MATCH == 'true' |
| 333 | + env.MATCH == 'true' |
330 | 334 | && github.repository == 'elastic/docs-builder' |
331 | 335 | && steps.deployment.outputs.result |
| 336 | + && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) |
332 | 337 | uses: elastic/docs-builder/.github/actions/bootstrap@main |
333 | 338 |
|
334 | 339 | - name: 'Validate redirect rules' |
335 | 340 | if: > |
336 | 341 | env.MATCH == 'true' |
337 | 342 | && github.repository == 'elastic/docs-builder' |
| 343 | + && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) |
338 | 344 | && ( |
339 | 345 | steps.deployment.outputs.result |
340 | 346 | || ( |
341 | | - needs.check.outputs.any_modified == 'true' |
| 347 | + needs.check.outputs.any_modified == 'true' |
342 | 348 | && github.event_name == 'merge_group' |
343 | 349 | ) |
344 | 350 | ) |
@@ -368,6 +374,7 @@ jobs: |
368 | 374 | env.MATCH == 'true' |
369 | 375 | && github.repository == 'elastic/docs-builder' |
370 | 376 | && steps.deployment.outputs.result |
| 377 | + && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) |
371 | 378 | run: | |
372 | 379 | dotnet run --project src/tooling/docs-builder -- --strict --path-prefix "${PATH_PREFIX}" |
373 | 380 |
|
@@ -415,11 +422,12 @@ jobs: |
415 | 422 | && ( |
416 | 423 | !cancelled() |
417 | 424 | && github.repository == 'elastic/docs-builder' |
418 | | - && steps.internal-docs-build.outputs.skip != 'true' |
| 425 | + && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) |
| 426 | + && steps.internal-docs-build.outputs.skip != 'true' |
419 | 427 | && ( |
420 | 428 | steps.deployment.outputs.result |
421 | 429 | || ( |
422 | | - needs.check.outputs.any_modified == 'true' |
| 430 | + needs.check.outputs.any_modified == 'true' |
423 | 431 | && github.event_name == 'merge_group' |
424 | 432 | ) |
425 | 433 | ) |
@@ -449,14 +457,15 @@ jobs: |
449 | 457 | if: > |
450 | 458 | env.MATCH == 'true' |
451 | 459 | && ( |
452 | | - !cancelled() |
| 460 | + !cancelled() |
453 | 461 | && github.repository == 'elastic/docs-builder' |
| 462 | + && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) |
454 | 463 | && steps.internal-docs-build.outputs.skip != 'true' |
455 | 464 | && steps.internal-docs-build.outcome != 'skipped' |
456 | 465 | && ( |
457 | | - steps.deployment.outputs.result |
| 466 | + steps.deployment.outputs.result |
458 | 467 | || ( |
459 | | - needs.check.outputs.any_modified == 'true' |
| 468 | + needs.check.outputs.any_modified == 'true' |
460 | 469 | && github.event_name == 'merge_group' |
461 | 470 | ) |
462 | 471 | ) |
@@ -686,6 +695,7 @@ jobs: |
686 | 695 | uses: elastic/vale-rules/lint@main |
687 | 696 | with: |
688 | 697 | files: ${{ needs.check.outputs.all_changed_files }} |
| 698 | + include-paths: ${{ inputs.include-paths }} |
689 | 699 | - name: Post Vale Results |
690 | 700 | uses: elastic/vale-rules/report@main |
691 | 701 | with: |
|
0 commit comments