Skip to content

Commit ea548f2

Browse files
authored
Improve logging of paths-skipping (#80)
1 parent fcf187e commit ea548f2

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
paths_ignore: '["**/*.md"]'
5959
cancel_others: 'true'
6060
concurrent_skipping: 'outdated_runs'
61-
skip_after_successful_duplicate: 'false'
61+
skip_after_successful_duplicate: 'true'
6262
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
6363
- if: ${{ steps.skip_check.outputs.should_skip == 'false' }}
6464
run: |

dist/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -10110,6 +10110,7 @@ function isCommitSkippable(commit, context) {
1011010110
core.info(`Commit ${commit.html_url} is path-skipped: None of '${changedFiles}' matches against patterns '${context.paths}'`);
1011110111
return true;
1011210112
}
10113+
core.info(`Stop backtracking at commit ${commit.html_url} because '${changedFiles}' are not skippable against paths '${context.paths}' or paths_ignore '${context.pathsIgnore}'`);
1011310114
return false;
1011410115
}
1011510116
const globOptions = {

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ function isCommitSkippable(commit: ReposGetCommitResponseData, context: WRunCont
280280
core.info(`Commit ${commit.html_url} is path-skipped: None of '${changedFiles}' matches against patterns '${context.paths}'`);
281281
return true;
282282
}
283+
core.info(`Stop backtracking at commit ${commit.html_url} because '${changedFiles}' are not skippable against paths '${context.paths}' or paths_ignore '${context.pathsIgnore}'`);
283284
return false;
284285
}
285286

0 commit comments

Comments
 (0)