Skip to content

Commit

Permalink
Improve logging of paths-skipping (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
fkirc authored Dec 22, 2020
1 parent fcf187e commit ea548f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
paths_ignore: '["**/*.md"]'
cancel_others: 'true'
concurrent_skipping: 'outdated_runs'
skip_after_successful_duplicate: 'false'
skip_after_successful_duplicate: 'true'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
- if: ${{ steps.skip_check.outputs.should_skip == 'false' }}
run: |
Expand Down
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10110,6 +10110,7 @@ function isCommitSkippable(commit, context) {
core.info(`Commit ${commit.html_url} is path-skipped: None of '${changedFiles}' matches against patterns '${context.paths}'`);
return true;
}
core.info(`Stop backtracking at commit ${commit.html_url} because '${changedFiles}' are not skippable against paths '${context.paths}' or paths_ignore '${context.pathsIgnore}'`);
return false;
}
const globOptions = {
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ function isCommitSkippable(commit: ReposGetCommitResponseData, context: WRunCont
core.info(`Commit ${commit.html_url} is path-skipped: None of '${changedFiles}' matches against patterns '${context.paths}'`);
return true;
}
core.info(`Stop backtracking at commit ${commit.html_url} because '${changedFiles}' are not skippable against paths '${context.paths}' or paths_ignore '${context.pathsIgnore}'`);
return false;
}

Expand Down

0 comments on commit ea548f2

Please sign in to comment.