From 13954120acdda430730d0e63b0321462b8a14d8f 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 a76a8e9..4a2a236 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