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 1919 - run : npm ci
2020 - run : npm run build
2121 - run : npm run audit-consumers --silent | tee issue-body.md
22+ env :
23+ GH_TOKEN : ${{ github.token }}
2224 - run : gh issue create --title "web-features consumers report for $(date -I)" --label generated --body-file issue-body.md
2325 env :
2426 GH_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change @@ -135,7 +135,9 @@ async function chromeStatusReport(): Promise<Report> {
135135}
136136
137137async function wptReport ( ) : Promise < Report > {
138- const octokit = new Octokit ( ) ;
138+ const octokit = new Octokit ( {
139+ auth : process . env . GH_TOKEN ,
140+ } ) ;
139141
140142 const params = { owner : "web-platform-tests" , repo : "wpt" } ;
141143 const release = await octokit . rest . repos . getLatestRelease ( params ) ;
@@ -204,4 +206,7 @@ async function main() {
204206 }
205207}
206208
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