From 21653cf3dc3fcde1973cfff91cf26095a2b45033 Mon Sep 17 00:00:00 2001 From: zaikunzhang Date: Tue, 9 Apr 2024 17:02:04 +0800 Subject: [PATCH] 240409.170204.HKT revise commments in .cirrus.yml about `only_if` and `skip` --- .cirrus.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index fbefa83879..68fc033a5c 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -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