Skip to content

Commit 918b8e0

Browse files
Pass ImportantFilePatterns input through workflow chain
1 parent 4343d76 commit 918b8e0

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/Get-Settings.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ on:
3232
description: The path to the root of the repo.
3333
required: false
3434
default: '.'
35+
ImportantFilePatterns:
36+
type: string
37+
description: |
38+
Newline-separated list of regex patterns that identify important files.
39+
Changes matching these patterns trigger build, test, and publish stages.
40+
When set, fully replaces the defaults (^src/ and ^README\.md$).
41+
required: false
3542

3643
outputs:
3744
Settings:
@@ -65,3 +72,4 @@ jobs:
6572
Verbose: ${{ inputs.Verbose }}
6673
Version: ${{ inputs.Version }}
6774
WorkingDirectory: ${{ inputs.WorkingDirectory }}
75+
ImportantFilePatterns: ${{ inputs.ImportantFilePatterns }}

.github/workflows/workflow.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ on:
5858
description: The path to the root of the repo.
5959
required: false
6060
default: '.'
61+
ImportantFilePatterns:
62+
type: string
63+
description: |
64+
Newline-separated list of regex patterns that identify important files.
65+
Changes matching these patterns trigger build, test, and publish stages.
66+
When set, fully replaces the defaults (^src/ and ^README\.md$).
67+
required: false
6168

6269
permissions:
6370
contents: write # to checkout the repo and create releases on the repo
@@ -81,6 +88,7 @@ jobs:
8188
Verbose: ${{ inputs.Verbose }}
8289
Version: ${{ inputs.Version }}
8390
WorkingDirectory: ${{ inputs.WorkingDirectory }}
91+
ImportantFilePatterns: ${{ inputs.ImportantFilePatterns }}
8492

8593
# Runs on:
8694
# - ✅ Open/Updated PR - Lints code changes in active PRs

0 commit comments

Comments
 (0)