From 68606f4aa541b55141d27739df5d57a113936849 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 15 Aug 2023 17:56:01 +1200 Subject: [PATCH] NEW Add action-ci --- funcs_scripts.php | 12 ++++++++++++ scripts/cms-any/action-ci.php | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 scripts/cms-any/action-ci.php diff --git a/funcs_scripts.php b/funcs_scripts.php index 3031d23..b2c360d 100644 --- a/funcs_scripts.php +++ b/funcs_scripts.php @@ -132,6 +132,18 @@ function is_module() && strpos($MODULE_DIR, '/webpack-config') === false; } +/** + * Determine if the module being processed is a gha-* repository e.g. gha-ci + * + * Example usage: + * is_gha_repository() + */ +function is_gha_repository() +{ + global $MODULE_DIR; + return strpos($MODULE_DIR, '/gha-') !== false; +} + /** * Determine if the module being processed is one of the modules in a list * diff --git a/scripts/cms-any/action-ci.php b/scripts/cms-any/action-ci.php new file mode 100644 index 0000000..9a41eb7 --- /dev/null +++ b/scripts/cms-any/action-ci.php @@ -0,0 +1,19 @@ +