From fe8c36e3b0cbb7e7adfc4e731e5012fb1c3aa597 Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Sun, 10 Dec 2023 05:35:50 +0000 Subject: [PATCH] Fix (ci): Run `state` job only on update `.state` commit Fixes #181 --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a76a8e93..4a2a2363 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,7 +55,7 @@ state: image: alpine:3.15 rules: # Run on steam-* branches when .state is added or modified - - if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH =~ /^steam-\w+-\w+$/ + - if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH =~ /^steam-\w+-\w+$/ && $CI_COMMIT_MESSAGE =~ /^Update .state/ changes: - .state timeout: 5m