Skip to content

Commit ca0b95e

Browse files
committed
Fix conditions
1 parent 055ce91 commit ca0b95e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/preview-build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ jobs:
8888
uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1
8989
with:
9090
files: ${{ inputs.path-pattern != '' && inputs.path-pattern || '**' }}
91-
files_ignore: ${{ inputs.path-pattern-ignore != '' && inputs.path-pattern-ignore || '' }}
91+
files_ignore: |
92+
${{ inputs.path-pattern-ignore != '' && inputs.path-pattern-ignore || '' }}
93+
.github/**
94+
README.md
9295
9396
match:
9497
if: github.event.repository.fork == false # Skip running the job on the fork itself (It still runs on PRs on the upstream from forks)
@@ -341,7 +344,7 @@ jobs:
341344
startsWith(github.event_name, 'pull_request')
342345
&& inputs.disable-comments != 'true'
343346
&& needs.build.outputs.deployment_result
344-
&& needs.check.outputs.all_changed_files
347+
&& needs.check.outputs.any_modified
345348
runs-on: ubuntu-latest
346349
needs:
347350
- check

0 commit comments

Comments
 (0)