Skip to content

Commit

Permalink
don't run github actions on draft PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 committed Jan 12, 2025
1 parent 19e8290 commit 7008f72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened, ready_for_review]

jobs:
test-unit:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
name: Run Unit Tests
steps:
Expand All @@ -25,6 +28,7 @@ jobs:
- name: Run unit testing
run: make test_unit
deploy-dev:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
concurrency:
group: ${{ github.event.repository.name }}-dev-env
Expand Down Expand Up @@ -69,6 +73,7 @@ jobs:
branch: main

test-dev:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
name: Run Live Tests
needs:
Expand Down

0 comments on commit 7008f72

Please sign in to comment.