File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 66 description : >-
77 The path to the log file
88 required : true
9+ issue-title :
10+ description : >-
11+ Title of issue being created or updated
12+ required : false
13+ default : " ⚠️ Nightly upstream-dev CI failed ⚠️"
14+ issue-label :
15+ description : >-
16+ Labels to apply to issue
17+ required : false
18+ default : " CI"
919outputs : {}
1020branding :
1121 color : ' red'
3040 script : |
3141 const fs = require('fs');
3242 const pytest_logs = fs.readFileSync('pytest-logs.txt', 'utf8');
33- const title = "⚠️ Nightly upstream-dev CI failed ⚠️ "
43+ const title = "${{ inputs.issue-title }} "
3444 const workflow_url = `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`
3545 const issue_body = `[Workflow Run URL](${workflow_url})\n${pytest_logs}`
3646
5262 const variables = {
5363 owner: context.repo.owner,
5464 name: context.repo.repo,
55- label: 'CI' ,
65+ label: "${{ inputs.issue-label }}" ,
5666 creator: "github-actions[bot]"
5767 }
5868 const result = await github.graphql(query, variables)
You can’t perform that action at this time.
0 commit comments