Skip to content

Commit

Permalink
Fix (ci): Run state job only on update .state commit
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed Dec 10, 2023
1 parent ca033cd commit c898384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c898384

Please sign in to comment.