Move issue body and number to env key in root of job
This commit is contained in:
parent
f0a5a9ce99
commit
e23722c07a
1 changed files with 4 additions and 3 deletions
7
.github/workflows/issue-check-support.yml
vendored
7
.github/workflows/issue-check-support.yml
vendored
|
|
@ -14,6 +14,9 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
issue-check-support:
|
issue-check-support:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
ISSUE_BODY: ${{ github.event.issue.body || github.event.inputs.issue_body }}
|
||||||
|
ISSUE_NUMBER: ${{ github.event.issue.number || github.event.inputs.issue_number }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
@ -27,8 +30,6 @@ jobs:
|
||||||
- name: Check issue
|
- name: Check issue
|
||||||
id: issue-check
|
id: issue-check
|
||||||
run: ./scripts/github.py --issue-check-tech-support
|
run: ./scripts/github.py --issue-check-tech-support
|
||||||
env:
|
|
||||||
ISSUE_BODY: ${{ github.event.issue.body || github.event.inputs.issue_body }}
|
|
||||||
|
|
||||||
- name: Add comment for customer
|
- name: Add comment for customer
|
||||||
if: steps.issue-check.outputs.may-need-tech-support == 'true'
|
if: steps.issue-check.outputs.may-need-tech-support == 'true'
|
||||||
|
|
@ -44,6 +45,6 @@ jobs:
|
||||||
github.rest.issues.createComment({
|
github.rest.issues.createComment({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
issue_number: context.issue.number || github.event.inputs.issue_number,
|
issue_number: context.issue.number || process.env.ISSUE_NUMBER,
|
||||||
body: process.env.COMMENT_BODY
|
body: process.env.COMMENT_BODY
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue