Skip to content

Commit

Permalink
Fix (ci): Run state job only on update .state commit (#183)
Browse files Browse the repository at this point in the history
Fixes #181
  • Loading branch information
leojonathanoh authored Dec 10, 2023
1 parent fe09308 commit edcdd12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ state:
stage: build
image: alpine:3.15
rules:
# Never run when .trigger is added or modified
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH =~ /^steam-\w+-\w+$/
changes:
- .trigger
when: never
# Run on steam-* branches when .state is added or modified
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH =~ /^steam-\w+-\w+$/
changes:
Expand Down

0 comments on commit edcdd12

Please sign in to comment.