fix
This commit is contained in:
23
dist/index.js
generated
vendored
23
dist/index.js
generated
vendored
@@ -498,17 +498,18 @@ function getComparison(baseRef, headRef, retryOpts) {
|
||||
baseRef,
|
||||
headRef
|
||||
});
|
||||
if (retryOpts !== undefined && comparison.snapshot_warnings.trim() !== '') {
|
||||
if (retryOpts.retryUntil < Date.now()) {
|
||||
core.info(`Retry timeout exceeded. Snapshot warnings still present: ${comparison.snapshot_warnings}.`);
|
||||
core.info('Proceeding...');
|
||||
return comparison;
|
||||
}
|
||||
else {
|
||||
core.info(comparison.snapshot_warnings);
|
||||
core.info(`Retrying in ${retryOpts.retryDelay} seconds... To disable retries on snapshot warnings, set retry-on-snapshot-warnings to false.`);
|
||||
yield delay(retryOpts.retryDelay * 1000);
|
||||
return getComparison(baseRef, headRef, retryOpts);
|
||||
if (comparison.snapshot_warnings.trim() !== '') {
|
||||
core.info(comparison.snapshot_warnings);
|
||||
if (retryOpts !== undefined) {
|
||||
if (retryOpts.retryUntil < Date.now()) {
|
||||
core.info(`Retry timeout exceeded. Proceeding...`);
|
||||
return comparison;
|
||||
}
|
||||
else {
|
||||
core.info(`Retrying in ${retryOpts.retryDelay} seconds...`);
|
||||
yield delay(retryOpts.retryDelay * 1000);
|
||||
return getComparison(baseRef, headRef, retryOpts);
|
||||
}
|
||||
}
|
||||
}
|
||||
return comparison;
|
||||
|
||||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
27
src/main.ts
27
src/main.ts
@@ -35,22 +35,21 @@ async function getComparison(
|
||||
baseRef,
|
||||
headRef
|
||||
})
|
||||
if (retryOpts !== undefined && comparison.snapshot_warnings.trim() !== '') {
|
||||
if (retryOpts.retryUntil < Date.now()) {
|
||||
core.info(
|
||||
`Retry timeout exceeded. Snapshot warnings still present: ${comparison.snapshot_warnings}.`
|
||||
)
|
||||
core.info('Proceeding...')
|
||||
return comparison
|
||||
} else {
|
||||
core.info(comparison.snapshot_warnings)
|
||||
core.info(
|
||||
`Retrying in ${retryOpts.retryDelay} seconds... To disable retries on snapshot warnings, set retry-on-snapshot-warnings to false.`
|
||||
)
|
||||
await delay(retryOpts.retryDelay * 1000)
|
||||
return getComparison(baseRef, headRef, retryOpts)
|
||||
|
||||
if (comparison.snapshot_warnings.trim() !== '') {
|
||||
core.info(comparison.snapshot_warnings)
|
||||
if (retryOpts !== undefined) {
|
||||
if (retryOpts.retryUntil < Date.now()) {
|
||||
core.info(`Retry timeout exceeded. Proceeding...`)
|
||||
return comparison
|
||||
} else {
|
||||
core.info(`Retrying in ${retryOpts.retryDelay} seconds...`)
|
||||
await delay(retryOpts.retryDelay * 1000)
|
||||
return getComparison(baseRef, headRef, retryOpts)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return comparison
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user