Skip to content

Commit c08167c

Browse files
ribose-jeffreylauantonsviridenko
authored andcommitted
ci: Make Cirrus CI skip CI also when 'skip ci' occurs elsewhere in the body of the commit message
The doc at https://cirrus-ci.org/guide/writing-tasks/#conditional-task-execution says that it would skip CI if 'skip ci' is on the first line of the commit message, but this behaviour would not match configs found in GitHub workflows. This commit tries to match their behaviours. It would also not run Cirrus CI if the only changes are in .github workflows. [skip ci]
1 parent 7d8fb3d commit c08167c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.cirrus.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ freebsd_instance:
44
task:
55
name: build
66
only_if: $CIRRUS_BRANCH == 'master' || $CIRRUS_BRANCH =~ 'release/.*' || $CIRRUS_PR != ''
7+
skip: "changesIncludeOnly('docs/*', '.github/*') || $CIRRUS_CHANGE_MESSAGE =~ '.*skip ci.*'"
78
# increase timeout since we use a single task for building cache and testing
89
timeout_in: 90m
910
env:

0 commit comments

Comments
 (0)