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 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
4752permissions :
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'))
You can’t perform that action at this time.
0 commit comments