Skip to content

Commit c8059f4

Browse files
committed
fix: don't update pipelines in DRY mode either
1 parent 7a51c1d commit c8059f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/state/context.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func IsDryRun(ctx context.Context) bool {
6666
}
6767

6868
func ShouldUpdatePipeline(ctx context.Context) bool {
69-
return ctx.Value(updatePipeline).(bool) //nolint:forcetypeassert
69+
return !IsDryRun(ctx) && ctx.Value(updatePipeline).(bool) //nolint:forcetypeassert
7070
}
7171

7272
func MergeRequestID(ctx context.Context) string {

0 commit comments

Comments
 (0)