Skip to content

Commit 18362ea

Browse files
author
Shi Shu
committed
Do not add comments for dry runs
1 parent 5fbdc9d commit 18362ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-patch-3-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ jobs:
176176
--label 'kind/bug,release-failure,priority/p0'
177177
178178
- name: 'Comment Success on Original PR'
179-
if: '${{ success() && github.event.inputs.original_pr }}'
179+
if: '${{ success() && github.event.inputs.original_pr && github.event.inputs.dry_run == false }}'
180180
env:
181181
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
182182
ORIGINAL_PR: '${{ github.event.inputs.original_pr }}'
@@ -193,7 +193,7 @@ jobs:
193193
node scripts/releasing/patch-comment.js
194194
195195
- name: 'Comment Failure on Original PR'
196-
if: '${{ failure() && github.event.inputs.original_pr }}'
196+
if: '${{ failure() && github.event.inputs.original_pr && github.event.inputs.dry_run == false }}'
197197
env:
198198
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
199199
ORIGINAL_PR: '${{ github.event.inputs.original_pr }}'

0 commit comments

Comments
 (0)