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'
|
||||||
- '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]
|
||||||
|
|||||||
3
.github/workflows/build-test-release.yml
vendored
3
.github/workflows/build-test-release.yml
vendored
@@ -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]
|
||||||
|
|||||||
3
.github/workflows/test-packaging.yml
vendored
3
.github/workflows/test-packaging.yml
vendored
@@ -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:
|
||||||
|
|||||||
7
.github/workflows/validate-rgas.yml
vendored
7
.github/workflows/validate-rgas.yml
vendored
@@ -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
|
||||||
|
|||||||
6
.github/workflows/validate_mapfiles.yml
vendored
6
.github/workflows/validate_mapfiles.yml
vendored
@@ -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
|
||||||
|
|||||||
7
.github/workflows/yaml-linter.yml
vendored
7
.github/workflows/yaml-linter.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user