Commit da42ab6 1 parent 2705892 commit da42ab6 Copy full SHA for da42ab6
File tree 2 files changed +20
-2
lines changed
2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 1
- scm-engine::evaluate :
1
+ # NOTE: This is integration testing file, its not meant for production usage
2
+ # The README has a production example
3
+
4
+ scm-engine::evaluate::on-change :
2
5
image : ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/golang:1.22.3
3
6
rules :
4
7
- if : $CI_PIPELINE_SOURCE == 'merge_request_event'
5
8
script :
6
9
- go mod tidy
7
10
- go run ./cmd/scm-engine/ evaluate
11
+
12
+ scm-engine::evaluate::on-schedule :
13
+ image : ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/golang:1.22.3
14
+ rules :
15
+ - if : $CI_PIPELINE_SOURCE == "schedule"
16
+ script :
17
+ - go mod tidy
18
+ - go run ./cmd/scm-engine/ evaluate all
Original file line number Diff line number Diff line change @@ -119,12 +119,19 @@ Using scm-engine within a GitLab CI pipeline is straight forward.
119
119
1 . Setup a CI job using the ` scm-engine ` Docker image that will run when a pipeline is created from a Merge Request Event.
120
120
121
121
``` yaml
122
- scm-engine :
122
+ scm-engine::evaluate::on-merge-request-event :
123
123
image : ghcr.io/jippi/scm-engine:latest
124
124
rules :
125
125
- if : $CI_PIPELINE_SOURCE == 'merge_request_event'
126
126
script :
127
127
- scm-engine evaluate
128
+
129
+ scm-engine::evaluate::on-schedule :
130
+ image : ghcr.io/jippi/scm-engine:latest
131
+ rules :
132
+ - if : $CI_PIPELINE_SOURCE == "schedule"
133
+ script :
134
+ - scm-engine evaluate all
128
135
` ` `
129
136
130
137
1. Done! Every Merge Request change should now re-run scm-engine and apply your label rules
You can’t perform that action at this time.
0 commit comments