Skip to content

Commit

Permalink
ci: Remove duplicate build when a PR is merged to main
Browse files Browse the repository at this point in the history
Make CI only build when there is a PR, or a direct push to main.

Signed-off-by: Wang, Arron <[email protected]>
  • Loading branch information
arronwy committed Aug 2, 2024
1 parent 223044f commit 7fe8c18
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/aa_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ concurrency:

jobs:
basic_ci:
if: github.event_name != 'push' || github.event.pull_request.merged == false
name: Check
defaults:
run:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/aa_cc_kbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:

jobs:
cc_kbc_ci:
if: github.event_name != 'push' || github.event.pull_request.merged == false
name: Check
defaults:
run:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/aa_crypto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:

jobs:
crypto_ci:
if: github.event_name != 'push' || github.event.pull_request.merged == false
name: Check
defaults:
run:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/aa_eaa_kbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:

jobs:
eaa_kbc_ci:
if: github.event_name != 'push' || github.event.pull_request.merged == false
name: Check
defaults:
run:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/aa_occlum_sgx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ concurrency:

jobs:
occlum_sgx_ci:
if: github.event_name != 'push' || github.event.pull_request.merged == false
runs-on: sgx
steps:
- name: Checkout Code
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/aa_sample_keyprovider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:

jobs:
coco_keyprovider_ci:
if: github.event_name != 'push' || github.event.pull_request.merged == false
name: Check
runs-on: ubuntu-latest
strategy:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/aa_sev_kbc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:

jobs:
offline_sev_kbc_ci:
if: github.event_name != 'push' || github.event.pull_request.merged == false
name: Check
defaults:
run:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/api-server-rest-basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ concurrency:

jobs:
basic_ci:
if: github.event_name != 'push' || github.event.pull_request.merged == false
name: Check
defaults:
run:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cdh_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ concurrency:

jobs:
basic_ci:
if: github.event_name != 'push' || github.event.pull_request.merged == false
name: Check
defaults:
run:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/image_rs_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ concurrency:

jobs:
ci:
if: github.event_name != 'push' || github.event.pull_request.merged == false
name: Check
defaults:
run:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ocicrypt_rs_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ concurrency:

jobs:
ci:
if: github.event_name != 'push' || github.event.pull_request.merged == false
name: Check
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 7fe8c18

Please sign in to comment.