File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 19
19
- run : npm ci
20
20
- run : npm run build
21
21
- run : npm run audit-consumers --silent | tee issue-body.md
22
+ env :
23
+ GH_TOKEN : ${{ github.token }}
22
24
- run : gh issue create --title "web-features consumers report for $(date -I)" --label generated --body-file issue-body.md
23
25
env :
24
26
GH_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change @@ -135,7 +135,9 @@ async function chromeStatusReport(): Promise<Report> {
135
135
}
136
136
137
137
async function wptReport ( ) : Promise < Report > {
138
- const octokit = new Octokit ( ) ;
138
+ const octokit = new Octokit ( {
139
+ auth : process . env . GH_TOKEN ,
140
+ } ) ;
139
141
140
142
const params = { owner : "web-platform-tests" , repo : "wpt" } ;
141
143
const release = await octokit . rest . repos . getLatestRelease ( params ) ;
@@ -204,4 +206,7 @@ async function main() {
204
206
}
205
207
}
206
208
207
- main ( ) ;
209
+ main ( ) . catch ( ( err ) => {
210
+ console . error ( err ) ;
211
+ process . exit ( 1 ) ;
212
+ } ) ;
You can’t perform that action at this time.
0 commit comments