Skip to content

Commit 410b05c

Browse files
GoshaDoGoshaMiggo
andauthored
ci: fix e2e test for push event to main (#21)
* ci: fix e2e test for push event to main Signed-off-by: Gosha <[email protected]> * ci: fix e2e test for push event to main Signed-off-by: Gosha <[email protected]> --------- Signed-off-by: Gosha <[email protected]> Co-authored-by: Gosha <[email protected]>
1 parent 57d39cc commit 410b05c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/e2e.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ jobs:
110110
with:
111111
token: ${{ secrets.GIT_TOKEN }}
112112
path: piper-e2e-test
113-
branch: ${{ github.head_ref }}-test
114-
title: ${{ github.head_ref }}-test
113+
branch: ${{ github.ref_name }}-test
114+
title: ${{ github.ref_name }}-test
115115
delete-branch: true
116116
- name: Wait for workflow creation
117117
run: |
@@ -129,7 +129,7 @@ jobs:
129129
run: |
130130
kubectl logs deployment/piper
131131
kubectl get workflows.argoproj.io -n workflows
132-
BRANCH_VALID_STRING=$(echo ${{ github.head_ref }}-test | tr '[:upper:]' '[:lower:]' | tr '_' '-' | tr -cd 'a-z0-9.\-')
132+
BRANCH_VALID_STRING=$(echo ${{ github.ref_name }}-test | tr '[:upper:]' '[:lower:]' | tr '_' '-' | tr -cd 'a-z0-9.\-')
133133
134134
## check if created
135135
RESULT=$(kubectl get workflows.argoproj.io -n workflows --selector=branch=$BRANCH_VALID_STRING --no-headers | grep piper-e2e-test)

0 commit comments

Comments
 (0)