File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 6
6
description : >-
7
7
The path to the log file
8
8
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"
9
19
outputs : {}
10
20
branding :
11
21
color : ' red'
30
40
script : |
31
41
const fs = require('fs');
32
42
const pytest_logs = fs.readFileSync('pytest-logs.txt', 'utf8');
33
- const title = "⚠️ Nightly upstream-dev CI failed ⚠️ "
43
+ const title = "${{ inputs.issue-title }} "
34
44
const workflow_url = `https://github.com/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`
35
45
const issue_body = `[Workflow Run URL](${workflow_url})\n${pytest_logs}`
36
46
52
62
const variables = {
53
63
owner: context.repo.owner,
54
64
name: context.repo.repo,
55
- label: 'CI' ,
65
+ label: "${{ inputs.issue-label }}" ,
56
66
creator: "github-actions[bot]"
57
67
}
58
68
const result = await github.graphql(query, variables)
You can’t perform that action at this time.
0 commit comments