Skip to content

Commit

Permalink
240409.170204.HKT revise commments in .cirrus.yml about only_if and…
Browse files Browse the repository at this point in the history
… `skip`
  • Loading branch information
zaikunzhang committed Apr 9, 2024
1 parent 56b6489 commit 21653cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
task:

# Perform the task only if the folders or files specified below are not changed
only_if: "changesInclude('.cirrus.yml', 'fortran/**', 'c/**', 'python/**')"
# Perform the task only if the folders or files specified below are changed
# See https://cirrus-ci.org/guide/writing-tasks/#conditional-task-execution
# skip: the task will be created / triggered, but its execution will be skipped, and it will be marked as successful.
#skip: "!changesInclude('.cirrus.yml', 'fortran/**', 'c/**', 'python/**')"
# only_if: the task will not be created / triggered.
only_if: "changesInclude('.cirrus.yml', 'fortran/**', 'c/**', 'python/**')"

matrix:
- name: FreeBSD
Expand Down

0 comments on commit 21653cf

Please sign in to comment.