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 b71ca6a commit fe8c36e
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 fe8c36e

Please sign in to comment.