[skip ci] Skip building kernel in draft pr (#1256)

This commit is contained in:
Ylarod
2024-01-06 10:28:06 +08:00
committed by GitHub
parent e3e4d2eed4
commit fd7681c3ff
5 changed files with 5 additions and 3 deletions

View File

@@ -124,7 +124,7 @@ jobs:
path: Image-android12*/*.img.gz path: Image-android12*/*.img.gz
check-build-kernel: check-build-kernel:
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request' && !github.event.pull_request.draft
uses: ./.github/workflows/gki-kernel.yml uses: ./.github/workflows/gki-kernel.yml
with: with:
version: android12-5.10 version: android12-5.10

View File

@@ -151,7 +151,7 @@ jobs:
path: Image-android13*/*.img.gz path: Image-android13*/*.img.gz
check-build-kernel: check-build-kernel:
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request' && !github.event.pull_request.draft
strategy: strategy:
matrix: matrix:
include: include:

View File

@@ -115,7 +115,7 @@ jobs:
path: Image-android14*/*.img.gz path: Image-android14*/*.img.gz
check-build-kernel: check-build-kernel:
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request' && !github.event.pull_request.draft
strategy: strategy:
matrix: matrix:
include: include:

View File

@@ -15,6 +15,7 @@ on:
jobs: jobs:
build: build:
if: github.event_name == 'pull_request' && !github.event.pull_request.draft
strategy: strategy:
matrix: matrix:
arch: [x86_64] arch: [x86_64]

View File

@@ -15,6 +15,7 @@ on:
jobs: jobs:
build: build:
if: github.event_name == 'pull_request' && !github.event.pull_request.draft
strategy: strategy:
matrix: matrix:
arch: [x86_64, arm64] arch: [x86_64, arm64]