File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -40283,6 +40283,12 @@ runAction(async () => {
40283
40283
await github.getOctokit(token)
40284
40284
.request('DELETE /installation/token', {
40285
40285
headers: { 'X-GitHub-Api-Version': '2022-11-28' },
40286
+ }).catch((err) => {
40287
+ if (err.response.status === 401) {
40288
+ // ignore already expired or revoked token
40289
+ return;
40290
+ }
40291
+ throw err;
40286
40292
});
40287
40293
}
40288
40294
});
Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ runAction(async () => {
11
11
await github . getOctokit ( token )
12
12
. request ( 'DELETE /installation/token' , {
13
13
headers : { 'X-GitHub-Api-Version' : '2022-11-28' } ,
14
+ } ) . catch ( ( err ) => {
15
+ if ( err . response . status === 401 ) {
16
+ // ignore already expired or revoked token
17
+ return ;
18
+ }
19
+ throw err ;
14
20
} ) ;
15
21
}
16
22
} ) ;
You can’t perform that action at this time.
0 commit comments