[Fix] Skip builds on draft PRs (#333)

This commit is contained in:
Christine Pinto
2024-06-10 13:21:14 +02:00
committed by GitHub
parent 2b4c5e70bf
commit 383ebb0829
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ on:
- develop
jobs:
build:
if: ${{ !startsWith(github.head_ref, 'release/') && !startsWith(github.head_ref, 'e2etest/')}}
if: ${{ !startsWith(github.head_ref, 'release/') && !startsWith(github.head_ref, 'e2etest/') && !github.event.pull_request.draft == true }}
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4

View File

@@ -7,7 +7,7 @@ on:
jobs:
build:
if: ${{ startsWith(github.head_ref, 'e2etest/') || github.event_name == 'workflow_dispatch' }}
if: ${{ (startsWith(github.head_ref, 'e2etest/') && github.event.pull_request && github.event.pull_request.draft == false) || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4