Skip to content

Commit

Permalink
Make sure jobs don't run on draft PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbhagatio committed Sep 3, 2023
1 parent 3e03eaa commit ef503d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_env_run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
build_env_pip_pyproject: # checks only for building env using pip and pyproject.toml
name: Build env using pip and pyproject.toml
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
Expand All @@ -38,6 +39,7 @@ jobs:
build_env_run_tests: # checks for building env using mamba and runs codebase checks and tests
name: Build env and run tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
if: github.event.pull_request.draft == false
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gpt_pr_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ concurrency:
jobs:
gpt_pr_review:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: coderabbitai/ai-pr-reviewer@latest
env:
Expand Down

0 comments on commit ef503d2

Please sign in to comment.