Skip to content

Commit b83885a

Browse files
authored
Disable running tests for Draft PRs (#339)
Disables the running of our CI actions when a PR is marked as 'Draft' Signed-off-by: Jonathan Swartz <[email protected]>
1 parent 23b9deb commit b83885a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/cu128.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
start-build-runner:
3333
name: Start CPU-only EC2 runner for build
3434
runs-on: ubuntu-latest
35+
if: github.event.pull_request.draft == false || github.event_name != 'pull_request_target'
3536
outputs:
3637
label: ${{ steps.start-build-runner.outputs.label }}
3738
ec2-instance-id: ${{ steps.start-build-runner.outputs.ec2-instance-id }}
@@ -56,7 +57,6 @@ jobs:
5657
# BUILD FVDB
5758
##############################################################################
5859
fvdb-build:
59-
if: ${{ !startsWith(github.event.pull_request.title, 'Draft:') }}
6060
name: fVDB Build
6161
needs: start-build-runner
6262
runs-on: ${{ needs.start-build-runner.outputs.label }}

.github/workflows/cu130.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
start-build-runner:
3333
name: Start CPU-only EC2 runner for build
3434
runs-on: ubuntu-latest
35+
if: github.event.pull_request.draft == false || github.event_name != 'pull_request_target'
3536
outputs:
3637
label: ${{ steps.start-build-runner.outputs.label }}
3738
ec2-instance-id: ${{ steps.start-build-runner.outputs.ec2-instance-id }}
@@ -56,7 +57,6 @@ jobs:
5657
# BUILD FVDB
5758
##############################################################################
5859
fvdb-build:
59-
if: ${{ !startsWith(github.event.pull_request.title, 'Draft:') }}
6060
name: fVDB Build
6161
needs: start-build-runner
6262
runs-on: ${{ needs.start-build-runner.outputs.label }}

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
start-build-runner:
4949
name: Start CPU-only EC2 runner for build
5050
runs-on: ubuntu-latest
51+
if: github.event.pull_request.draft == false || github.event_name != 'pull_request_target'
5152
outputs:
5253
label: ${{ steps.start-build-runner.outputs.label }}
5354
ec2-instance-id: ${{ steps.start-build-runner.outputs.ec2-instance-id }}

0 commit comments

Comments
 (0)