Skip to content

Commit 6c1e4af

Browse files
committed
ok
1 parent 8313983 commit 6c1e4af

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/preview-build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ on:
4343
type: string
4444
default: 'false'
4545
required: false
46+
disable-comments:
47+
description: 'Disable comments'
48+
type: boolean
49+
default: false
50+
required: false
4651

4752
permissions:
4853
id-token: write
@@ -235,13 +240,13 @@ jobs:
235240
236241
- name: Comment on PR
237242
continue-on-error: true
238-
if: env.MATCH == 'true' && steps.deployment.outputs.result && steps.check-files.outputs.all_changed_files
243+
if: inputs.disable-comments != 'true' && env.MATCH == 'true' && steps.deployment.outputs.result && steps.check-files.outputs.all_changed_files
239244
uses: actions/github-script@v7
240245
env:
241246
ALL_CHANGED_FILES: ${{ steps.check-files.outputs.all_changed_files }}
242247
with:
243248
script: |
244-
const title = '## 🔍 Preview links for changed docs'
249+
const title = '#### 🔍 Preview links for changed docs:'
245250
const changedMdFiles = process.env.ALL_CHANGED_FILES
246251
.split(/\s+/)
247252
.filter(i => i.endsWith('.md'))

0 commit comments

Comments
 (0)