Skip to content

Commit

Permalink
Don't run gh actions on draft prs (#13706)
Browse files Browse the repository at this point in the history
  • Loading branch information
metalgearsloth authored Jan 26, 2023
1 parent 67dab1a commit 0e8b8c0
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-test-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
- 'RobustToolbox'
- 'RobustToolbox/**'
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
branches: [ master ]
paths:
- '**.cs'
Expand All @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
- 'RobustToolbox'
- 'RobustToolbox/**'
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
branches: [ master ]
paths:
- '**.cs'
Expand All @@ -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]
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
- 'RobustToolbox'
- 'RobustToolbox/**'
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
branches: [ master ]
paths:
- '**.cs'
Expand All @@ -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:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/validate-rgas.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/validate_mapfiles.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/yaml-linter.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0e8b8c0

Please sign in to comment.