Skip to content

Commit f0502f5

Browse files
committed
Use branch-ref on second upload when doing release
We should not do from tag since we already created the ref previously and since now we fail on error it will fail here, so let's update directly to the released branch Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent c1860d7 commit f0502f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.tekton/release-pipeline.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ spec:
7777
--message "OpenShift release.yaml generated for Release ${TARGET_BRANCH}" \
7878
--owner-repository openshift-pipelines/pipelines-as-code \
7979
--token ${HUB_TOKEN} \
80-
--from-tag=refs/tags/${TARGET_BRANCH} \
80+
--branch-ref refs/heads/release-${TARGET_BRANCH} \
8181
-d release-${TARGET_BRANCH}.yaml -f <(env TARGET_OPENSHIFT=true ./hack/generate-releaseyaml.sh)
8282
exit 0
8383
- name: gorelease

0 commit comments

Comments
 (0)