Skip to content

Commit

Permalink
Optional duplicate skipping (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
fkirc authored Dec 18, 2020
1 parent e22d49a commit 79840b1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 79840b1

Please sign in to comment.