Skip to content

Commit 1a5dc08

Browse files
committed
fix potential bug in workflow
1 parent dce810c commit 1a5dc08

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/bug-reproduction-instructions.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
name: Bug Report Reproduction Check
99
on:
1010
issues:
11-
types: [opened, labeled]
11+
types: [labeled]
1212

1313
permissions:
1414
contents: read
@@ -51,14 +51,12 @@ jobs:
5151
- name: Comment On Issue
5252
if: contains(join(github.event.issue.labels.*.name, ','), 'bug') && steps.analyze-issue.outputs.response != 'pass'
5353
uses: actions/github-script@v7
54-
env:
55-
AI_RESPONSE: steps.analyze-issue.outputs.response
5654
with:
5755
script: |
5856
const issue_number = context.issue.number
5957
await github.rest.issues.createComment({
6058
owner: context.repo.owner,
6159
repo: context.repo.repo,
6260
issue_number,
63-
body: process.env.AI_RESPONSE
61+
body: steps.analyze-issue.outputs.response
6462
})

0 commit comments

Comments
 (0)