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 74f492e commit edf1762
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ concurrency:
cancel-in-progress: true

env:
GOSEC_VERSION: '2.14.0'
GOSEC_VERSION: '2.15.0'

jobs:
filter:
Expand Down
33 changes: 17 additions & 16 deletions .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,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 @@ -168,6 +168,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 @@ -190,11 +191,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 @@ -282,11 +283,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 @@ -368,11 +369,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 @@ -433,11 +434,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 @@ -514,11 +515,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 @@ -768,11 +769,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 @@ -864,11 +865,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 edf1762

Please sign in to comment.