Skip to content

Commit de35cd5

Browse files
authored
preview-build: Add path-pattern-ignore (#1499)
* preview-build: Add path-pattern-ignore So we can ignore some files and so that the files are not included in the comment * test * Revert "test" This reverts commit e14aedb.
1 parent 0b83e45 commit de35cd5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/preview-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ on:
3838
type: string
3939
default: '**'
4040
required: false
41+
path-pattern-ignore:
42+
description: 'Path pattern to ignore files.'
43+
type: string
44+
default: ''
45+
required: false
4146
free-disk-space:
4247
description: 'Free disk space before running the build'
4348
type: string
@@ -118,6 +123,7 @@ jobs:
118123
uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1
119124
with:
120125
files: ${{ inputs.path-pattern != '' && inputs.path-pattern || '**' }}
126+
files_ignore: ${{ inputs.path-pattern-ignore != '' && inputs.path-pattern-ignore || '' }}
121127

122128
- name: Checkout
123129
if: env.MATCH == 'true' && (startsWith(github.event_name, 'pull_request') && steps.check-files.outputs.any_modified == 'true')

0 commit comments

Comments
 (0)