Skip to content

Commit 79840b1

Browse files
authored
Optional duplicate skipping (#74)
1 parent e22d49a commit 79840b1

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

dist/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9988,7 +9988,12 @@ async function main() {
99889988
detectConcurrentRuns(context);
99899989
}
99909990
if (context.paths.length >= 1 || context.pathsIgnore.length >= 1) {
9991-
await backtracePathSkipping(context);
9991+
if (skipAfterSuccessfulDuplicates) {
9992+
await backtracePathSkipping(context);
9993+
}
9994+
else {
9995+
core.warning(`Ignore paths detection because 'skip_after_successful_duplicate' is set to false`);
9996+
}
99929997
}
99939998
core.info("Do not skip execution because we did not find a transferable run");
99949999
exitSuccess({ shouldSkip: false });

src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,11 @@ async function main() {
153153
detectConcurrentRuns(context);
154154
}
155155
if (context.paths.length >= 1 || context.pathsIgnore.length >= 1) {
156-
await backtracePathSkipping(context);
156+
if (skipAfterSuccessfulDuplicates) {
157+
await backtracePathSkipping(context);
158+
} else {
159+
core.warning(`Ignore paths detection because 'skip_after_successful_duplicate' is set to false`);
160+
}
157161
}
158162
core.info("Do not skip execution because we did not find a transferable run");
159163
exitSuccess({ shouldSkip: false });

0 commit comments

Comments
 (0)