Don't run gh actions on draft prs (#13706)

This commit is contained in:
metalgearsloth
2023-01-27 09:37:28 +11:00
committed by GitHub
parent 67dab1a56a
commit 0e8b8c0735
6 changed files with 21 additions and 8 deletions

View File

@@ -14,6 +14,7 @@ on:
- 'RobustToolbox'
- 'RobustToolbox/**'
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
branches: [ master ]
paths:
- '**.cs'
@@ -26,7 +27,7 @@ on:
jobs:
build:
if: github.actor != 'PJBot'
if: github.actor != 'PJBot' && github.event.pull_request.draft == false
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

View File

@@ -14,6 +14,7 @@ on:
- 'RobustToolbox'
- 'RobustToolbox/**'
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
branches: [ master ]
paths:
- '**.cs'
@@ -26,7 +27,7 @@ on:
jobs:
build:
if: github.actor != 'PJBot'
if: github.actor != 'PJBot' && github.event.pull_request.draft == false
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

View File

@@ -14,6 +14,7 @@ on:
- 'RobustToolbox'
- 'RobustToolbox/**'
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
branches: [ master ]
paths:
- '**.cs'
@@ -26,7 +27,7 @@ on:
jobs:
build:
if: github.actor != 'PJBot'
if: github.actor != 'PJBot' && github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:

View File

@@ -1,9 +1,12 @@
name: YAML schema validator
on: [pull_request, push]
on:
push:
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
jobs:
yaml-schema-validation:
if: github.actor != 'PJBot'
if: github.actor != 'PJBot' && github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

View File

@@ -1,8 +1,12 @@
name: YAML schema validator
on: [pull_request, push]
on:
push:
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
jobs:
yaml-schema-validation:
if: github.actor != 'PJBot' && github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

View File

@@ -1,10 +1,13 @@
name: YAML Linter
on: [pull_request, push]
on:
push:
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
jobs:
build:
if: github.actor != 'PJBot'
if: github.actor != 'PJBot' && github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2