diff --git a/dist/index.js b/dist/index.js index 8690a3e..e9d12ff 100644 --- a/dist/index.js +++ b/dist/index.js @@ -9988,7 +9988,12 @@ async function main() { detectConcurrentRuns(context); } if (context.paths.length >= 1 || context.pathsIgnore.length >= 1) { - await backtracePathSkipping(context); + if (skipAfterSuccessfulDuplicates) { + await backtracePathSkipping(context); + } + else { + core.warning(`Ignore paths detection because 'skip_after_successful_duplicate' is set to false`); + } } core.info("Do not skip execution because we did not find a transferable run"); exitSuccess({ shouldSkip: false }); diff --git a/src/index.ts b/src/index.ts index 0e84cf6..63e9e5f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -153,7 +153,11 @@ async function main() { detectConcurrentRuns(context); } if (context.paths.length >= 1 || context.pathsIgnore.length >= 1) { - await backtracePathSkipping(context); + if (skipAfterSuccessfulDuplicates) { + await backtracePathSkipping(context); + } else { + core.warning(`Ignore paths detection because 'skip_after_successful_duplicate' is set to false`); + } } core.info("Do not skip execution because we did not find a transferable run"); exitSuccess({ shouldSkip: false });