Skip to content

Commit dafd94c

Browse files
vdemeestertekton-robot
authored andcommitted
tekton: clarify push event only fires on branch creation
Add inline comment explaining the on-event/on-cel-expression interaction: the push trigger combined with body.created == true means it fires exactly once per release branch (on creation), not on every commit.
1 parent 1169a40 commit dafd94c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.tekton/release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ kind: PipelineRun
2525
metadata:
2626
name: release-pipeline
2727
annotations:
28+
# Trigger on push events to release branches, but ONLY when the branch
29+
# is first created (body.created == true). This means it fires exactly
30+
# once per release branch, not on every commit pushed to it.
2831
pipelinesascode.tekton.dev/on-event: "[push]"
2932
pipelinesascode.tekton.dev/on-target-branch: "[refs/heads/release-v*]"
3033
pipelinesascode.tekton.dev/on-cel-expression: "body.created == true"

0 commit comments

Comments
 (0)