Skip to content

Commit

Permalink
ci: fix default branch test (#2369)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Feb 22, 2023
1 parent 25c1907 commit 2a9d700
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -143,6 +143,7 @@ jobs:
restore-keys: ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-

- run: make e2e-compile
working-directory: ${{ env.E2E_DIR }}

k8s-conformance-e2e:
name: Kubernetes Conformance E2E
Expand All @@ -165,11 +166,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -257,11 +258,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -343,11 +344,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -408,11 +409,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -489,11 +490,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -785,11 +786,11 @@ jobs:
version: '${{ env.HELM_VERSION }}'

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down Expand Up @@ -881,11 +882,11 @@ jobs:
- uses: actions/checkout@v3

- name: Create the default branch directory
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
run: mkdir -p test/e2e/source

- name: Check out the default branch
if: github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
if: (github.base_ref || github.ref_name) != github.event.repository.default_branch
uses: actions/checkout@v3
with:
ref: ${{ github.event.repository.default_branch }}
Expand Down

0 comments on commit 2a9d700

Please sign in to comment.