mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
feat: warn on git push errors
This commit is contained in:
parent
b8d27464d1
commit
ce53a56b63
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -924,7 +924,7 @@ const waitMilliseconds = 60000;
|
||||||
const limiter = new bottleneck_1.default();
|
const limiter = new bottleneck_1.default();
|
||||||
limiter.on('failed', (error, jobInfo) => __awaiter(void 0, void 0, void 0, function* () {
|
limiter.on('failed', (error, jobInfo) => __awaiter(void 0, void 0, void 0, function* () {
|
||||||
const id = jobInfo.options.id;
|
const id = jobInfo.options.id;
|
||||||
core.info(`Job '${id}' failed: ${error}`);
|
core.warning(`Job '${id}' failed: ${error}`);
|
||||||
if (error.message in retryableErrors && jobInfo.retryCount < maxRetries) {
|
if (error.message in retryableErrors && jobInfo.retryCount < maxRetries) {
|
||||||
core.info(`Retrying job '${id}' in ${waitMilliseconds}ms`);
|
core.info(`Retrying job '${id}' in ${waitMilliseconds}ms`);
|
||||||
return waitMilliseconds + randomFromInterval(0, 10000);
|
return waitMilliseconds + randomFromInterval(0, 10000);
|
||||||
|
|
|
@ -12,7 +12,7 @@ const limiter = new Bottleneck()
|
||||||
|
|
||||||
limiter.on('failed', async (error, jobInfo) => {
|
limiter.on('failed', async (error, jobInfo) => {
|
||||||
const id = jobInfo.options.id
|
const id = jobInfo.options.id
|
||||||
core.info(`Job '${id}' failed: ${error}`)
|
core.warning(`Job '${id}' failed: ${error}`)
|
||||||
|
|
||||||
if (error.message in retryableErrors && jobInfo.retryCount < maxRetries) {
|
if (error.message in retryableErrors && jobInfo.retryCount < maxRetries) {
|
||||||
core.info(`Retrying job '${id}' in ${waitMilliseconds}ms`)
|
core.info(`Retrying job '${id}' in ${waitMilliseconds}ms`)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue