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

View File

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

View File

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

View File

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

View File

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

View File

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