Don't run gh actions on draft prs (#13706)
This commit is contained in:
3
.github/workflows/build-test-debug.yml
vendored
3
.github/workflows/build-test-debug.yml
vendored
@@ -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]
|
||||
|
||||
3
.github/workflows/build-test-release.yml
vendored
3
.github/workflows/build-test-release.yml
vendored
@@ -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]
|
||||
|
||||
3
.github/workflows/test-packaging.yml
vendored
3
.github/workflows/test-packaging.yml
vendored
@@ -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:
|
||||
|
||||
7
.github/workflows/validate-rgas.yml
vendored
7
.github/workflows/validate-rgas.yml
vendored
@@ -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
|
||||
|
||||
6
.github/workflows/validate_mapfiles.yml
vendored
6
.github/workflows/validate_mapfiles.yml
vendored
@@ -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
|
||||
|
||||
7
.github/workflows/yaml-linter.yml
vendored
7
.github/workflows/yaml-linter.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user