Skip to content

Commit 0f4cc87

Browse files
committed
refactor
1 parent 99030ac commit 0f4cc87

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

dist/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38349,20 +38349,21 @@ const action = () => run(async () => {
3834938349
},
3835038350
silent: false,
3835138351
});
38352+
console.log('');
3835238353
startGroup('Creating signed commit via GitHup API ...');
3835338354
let throttlingRetryCount = -1;
3835438355
const octokit = getOctokit(input.token, {
3835538356
throttle: {
3835638357
onRateLimit: (retryAfter, options, octokit, retryCount) => {
3835738358
if (retryCount !== throttlingRetryCount) {
38358-
octokit.log.warn(`GitHub Api request quota exhausted - Retrying after ${retryAfter} seconds...`);
38359+
octokit.log.warn(`GitHub Api request quota exhausted - Continue after ${retryAfter} seconds...`);
3835938360
throttlingRetryCount = retryCount;
3836038361
}
3836138362
return true;
3836238363
},
3836338364
onSecondaryRateLimit: (retryAfter, options, octokit, retryCount) => {
3836438365
if (retryCount !== throttlingRetryCount) {
38365-
octokit.log.warn(`GitHub Api request quota exhausted - Retrying after ${retryAfter} seconds...`);
38366+
octokit.log.warn(`GitHub Api request quota exhausted - Continue after ${retryAfter} seconds...`);
3836638367
throttlingRetryCount = retryCount;
3836738368
}
3836838369
return true;

index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export const action = () => run(async () => {
6666
},
6767
silent: false,
6868
})
69+
console.log('')
6970

7071
core.startGroup('Creating signed commit via GitHup API ...')
7172

@@ -74,14 +75,14 @@ export const action = () => run(async () => {
7475
throttle: {
7576
onRateLimit: (retryAfter, options, octokit, retryCount) => {
7677
if(retryCount !== throttlingRetryCount){
77-
octokit.log.warn(`GitHub Api request quota exhausted - Retrying after ${retryAfter} seconds...`)
78+
octokit.log.warn(`GitHub Api request quota exhausted - Continue after ${retryAfter} seconds...`)
7879
throttlingRetryCount = retryCount;
7980
}
8081
return true
8182
},
8283
onSecondaryRateLimit: (retryAfter, options, octokit, retryCount) => {
8384
if(retryCount !== throttlingRetryCount){
84-
octokit.log.warn(`GitHub Api request quota exhausted - Retrying after ${retryAfter} seconds...`)
85+
octokit.log.warn(`GitHub Api request quota exhausted - Continue after ${retryAfter} seconds...`)
8586
throttlingRetryCount = retryCount;
8687
}
8788
return true

0 commit comments

Comments
 (0)