Skip to content

Commit

Permalink
ci: fix e2e test for push event to main (#21)
Browse files Browse the repository at this point in the history
* ci: fix e2e test for push event to main

Signed-off-by: Gosha <gosha@miggo.io>

* ci: fix e2e test for push event to main

Signed-off-by: Gosha <gosha@miggo.io>

---------

Signed-off-by: Gosha <gosha@miggo.io>
Co-authored-by: Gosha <gosha@miggo.io>
  • Loading branch information
GoshaDo and GoshaMiggo authored Apr 6, 2024
1 parent 57d39cc commit 410b05c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ jobs:
with:
token: ${{ secrets.GIT_TOKEN }}
path: piper-e2e-test
branch: ${{ github.head_ref }}-test
title: ${{ github.head_ref }}-test
branch: ${{ github.ref_name }}-test
title: ${{ github.ref_name }}-test
delete-branch: true
- name: Wait for workflow creation
run: |
Expand All @@ -129,7 +129,7 @@ jobs:
run: |
kubectl logs deployment/piper
kubectl get workflows.argoproj.io -n workflows
BRANCH_VALID_STRING=$(echo ${{ github.head_ref }}-test | tr '[:upper:]' '[:lower:]' | tr '_' '-' | tr -cd 'a-z0-9.\-')
BRANCH_VALID_STRING=$(echo ${{ github.ref_name }}-test | tr '[:upper:]' '[:lower:]' | tr '_' '-' | tr -cd 'a-z0-9.\-')
## check if created
RESULT=$(kubectl get workflows.argoproj.io -n workflows --selector=branch=$BRANCH_VALID_STRING --no-headers | grep piper-e2e-test)
Expand Down

0 comments on commit 410b05c

Please sign in to comment.