Skip to content

Commit

Permalink
ci : trigger CI for drafts, but not most PR actions (ggerganov#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
sw authored Apr 22, 2023
1 parent c50b628 commit 857308d
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ on:
- master
paths: ['.github/workflows/**', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.c', '**/*.cpp']
pull_request:
types: [opened, synchronize, edited, reopened, review_requested, ready_for_review]
types: [opened, synchronize, reopened]
paths: ['**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.c', '**/*.cpp']

env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

jobs:
ubuntu-latest-make:
if: github.event.pull_request.draft == false

runs-on: ubuntu-latest

steps:
Expand All @@ -41,8 +39,6 @@ jobs:
make
ubuntu-latest-cmake:
if: github.event.pull_request.draft == false

runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -71,8 +67,6 @@ jobs:
ctest --verbose
ubuntu-latest-cmake-sanitizer:
if: github.event.pull_request.draft == false

runs-on: ubuntu-latest

continue-on-error: true
Expand Down Expand Up @@ -108,8 +102,6 @@ jobs:
ctest --verbose
macOS-latest-make:
if: github.event.pull_request.draft == false

runs-on: macos-latest

steps:
Expand All @@ -128,8 +120,6 @@ jobs:
make
macOS-latest-cmake:
if: github.event.pull_request.draft == false

runs-on: macOS-latest

steps:
Expand Down Expand Up @@ -157,8 +147,6 @@ jobs:
ctest --verbose
windows-latest-cmake:
if: github.event.pull_request.draft == false

runs-on: windows-latest

strategy:
Expand Down

0 comments on commit 857308d

Please sign in to comment.