We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b8a986 commit 226fc99Copy full SHA for 226fc99
.github/workflows/ci-unittests.yml
@@ -53,6 +53,23 @@ jobs:
53
return;
54
}
55
56
+ const changedFiles = await github.paginate(
57
+ github.rest.pulls.listFiles,
58
+ {
59
+ owner: context.repo.owner,
60
+ repo: context.repo.repo,
61
+ pull_number: pr.number,
62
+ per_page: 100,
63
+ }
64
+ );
65
+
66
+ const hasOnlyDocsChanges = changedFiles.length > 0 && changedFiles.every(file => file.filename.startsWith('docs/'));
67
+ if (hasOnlyDocsChanges) {
68
+ core.setOutput('run_ci', 'false');
69
+ core.setOutput('reason', 'docs-only changes');
70
+ return;
71
72
73
if (hasWorkflowOrSuiteChanges) {
74
core.setOutput('run_ci', 'true');
75
core.setOutput('reason', '.github or suite.py changes');
0 commit comments