Skip to content

Commit 036f443

Browse files
committed
chore: skip commenting if issue number is missing
1 parent a1b016d commit 036f443

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/gemini-dispatch.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ jobs:
122122
}
123123
124124
- name: 'Acknowledge request'
125+
if: |-
126+
${{ github.event.pull_request.number || github.event.issue.number }}
125127
env:
126128
GITHUB_TOKEN: '${{ steps.mint_identity_token.outputs.token || secrets.GITHUB_TOKEN || github.token }}'
127129
ISSUE_NUMBER: '${{ github.event.pull_request.number || github.event.issue.number }}'
@@ -229,6 +231,8 @@ jobs:
229231
permission-pull-requests: 'write'
230232

231233
- name: 'Send failure comment'
234+
if: |-
235+
${{ github.event.pull_request.number || github.event.issue.number }}
232236
env:
233237
GITHUB_TOKEN: '${{ steps.mint_identity_token.outputs.token || secrets.GITHUB_TOKEN || github.token }}'
234238
ISSUE_NUMBER: '${{ github.event.pull_request.number || github.event.issue.number }}'

0 commit comments

Comments
 (0)