Skip to content

Commit 265cd7c

Browse files
authored
ci: do not trigger workflow when draft and change machine (#16)
* ci: do not trigger workflow when draft and change machine * delete license checker
1 parent 4ae2406 commit 265cd7c

10 files changed

+13
-124
lines changed

.asf.yaml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/docker-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ on:
3232

3333
jobs:
3434
docker:
35-
runs-on: ubuntu-latest
35+
runs-on: buildjet-2vcpu-ubuntu-2204
3636
steps:
3737
-
3838
name: Checkout

.github/workflows/e2e-test-ci-v2-cron-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- ".github/**"
6666
build:
6767
name: Build
68-
runs-on: ubuntu-20.04
68+
runs-on: buildjet-2vcpu-ubuntu-2204
6969
needs: changes
7070
if: needs.changes.outputs.go == 'true'
7171

@@ -151,7 +151,7 @@ jobs:
151151
- changes
152152
- prepare
153153
- build
154-
runs-on: ubuntu-20.04
154+
runs-on: buildjet-2vcpu-ubuntu-2204
155155
strategy:
156156
fail-fast: false # If false, GitHub will not cancels all in-progress jobs in the matrix if any matrix job fails.
157157
matrix:

.github/workflows/e2e-test-ci-v2-cron.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- ".github/**"
6565
build:
6666
name: Build
67-
runs-on: ubuntu-20.04
67+
runs-on: buildjet-2vcpu-ubuntu-2204
6868
needs: changes
6969
if: needs.changes.outputs.go == 'true'
7070

@@ -150,7 +150,7 @@ jobs:
150150
- changes
151151
- prepare
152152
- build
153-
runs-on: ubuntu-20.04
153+
runs-on: buildjet-2vcpu-ubuntu-2204
154154
strategy:
155155
fail-fast: false # If false, GitHub will not cancels all in-progress jobs in the matrix if any matrix job fails.
156156
matrix:

.github/workflows/e2e-test-ci.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
#
2-
# Licensed to the Apache Software Foundation (ASF) under one
3-
# or more contributor license agreements. See the NOTICE file
4-
# distributed with this work for additional information
5-
# regarding copyright ownership. The ASF licenses this file
6-
# to you under the Apache License, Version 2.0 (the
7-
# "License"); you may not use this file except in compliance
8-
# with the License. You may obtain a copy of the License at
9-
#
10-
# http://www.apache.org/licenses/LICENSE-2.0
11-
#
12-
# Unless required by applicable law or agreed to in writing,
13-
# software distributed under the License is distributed on an
14-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
# KIND, either express or implied. See the License for the
16-
# specific language governing permissions and limitations
17-
# under the License.
18-
#
191
name: e2e-test-ci
202

213
on:
@@ -33,6 +15,7 @@ concurrency:
3315

3416
jobs:
3517
changes:
18+
if: '! github.event.pull_request.draft'
3619
runs-on: ubuntu-20.04
3720
outputs:
3821
docs: ${{ steps.filter.outputs.docs }}
@@ -64,10 +47,9 @@ jobs:
6447
- ".github/**"
6548
build:
6649
name: Build
67-
runs-on: ubuntu-20.04
50+
runs-on: buildjet-2vcpu-ubuntu-2204
6851
needs: changes
6952
if: needs.changes.outputs.go == 'true'
70-
7153
steps:
7254

7355
- name: Checkout
@@ -151,7 +133,7 @@ jobs:
151133
- changes
152134
- prepare
153135
- build
154-
runs-on: ubuntu-20.04
136+
runs-on: buildjet-2vcpu-ubuntu-2204
155137
strategy:
156138
fail-fast: false # If false, GitHub will not cancels all in-progress jobs in the matrix if any matrix job fails.
157139
matrix:

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
needs: changes
6464
if: |
6565
(needs.changes.outputs.go == 'true')
66-
runs-on: ubuntu-latest
66+
runs-on: buildjet-2vcpu-ubuntu-2204
6767
steps:
6868
- uses: actions/checkout@v4
6969
- name: Setup Go Env

.github/workflows/license-checker.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/lint-checker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
needs: changes
6363
if: |
6464
(needs.changes.outputs.go == 'true')
65-
runs-on: ubuntu-latest
65+
runs-on: buildjet-2vcpu-ubuntu-2204
6666
steps:
6767
- uses: actions/checkout@v4
6868
- name: Setup Go Env

.github/workflows/release-drafter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ on:
2626
- '.github/**'
2727
jobs:
2828
update_release_draft:
29-
if: github.repository == 'apache/apisix-ingress-controller'
30-
runs-on: ubuntu-22.04
29+
if: github.repository == 'api7/api7-ingress-controller'
30+
runs-on: buildjet-2vcpu-ubuntu-2204
3131
steps:
3232
- name: Drafting release
3333
id: release_drafter

.github/workflows/unit-test-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
needs: changes
6363
if: |
6464
(needs.changes.outputs.go == 'true')
65-
runs-on: ubuntu-latest
65+
runs-on: buildjet-2vcpu-ubuntu-2204
6666
steps:
6767
- uses: actions/checkout@v4
6868
- name: Setup Go Env

0 commit comments

Comments
 (0)