File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 43
43
type : string
44
44
default : ' false'
45
45
required : false
46
+ disable-comments :
47
+ description : ' Disable comments'
48
+ type : boolean
49
+ default : false
50
+ required : false
46
51
47
52
permissions :
48
53
id-token : write
@@ -235,13 +240,13 @@ jobs:
235
240
236
241
- name : Comment on PR
237
242
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
239
244
uses : actions/github-script@v7
240
245
env :
241
246
ALL_CHANGED_FILES : ${{ steps.check-files.outputs.all_changed_files }}
242
247
with :
243
248
script : |
244
- const title = '## 🔍 Preview links for changed docs'
249
+ const title = '#### 🔍 Preview links for changed docs: '
245
250
const changedMdFiles = process.env.ALL_CHANGED_FILES
246
251
.split(/\s+/)
247
252
.filter(i => i.endsWith('.md'))
You can’t perform that action at this time.
0 commit comments