Use ISSUE_NUMBER env var for check support workflow
This commit is contained in:
parent
3963e77cd2
commit
0fe0532355
1 changed files with 2 additions and 1 deletions
3
.github/workflows/issue-check-support.yml
vendored
3
.github/workflows/issue-check-support.yml
vendored
|
|
@ -44,11 +44,12 @@ jobs:
|
|||
uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
issue_number = process.env.ISSUE_NUMBER
|
||||
body = process.env.COMMENT_BODY
|
||||
body = body.replace(/\\n/g, '\n')
|
||||
github.rest.issues.createComment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: context.issue.number || github.event.inputs.issue_number,
|
||||
issue_number,
|
||||
body
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue