Don't run gh actions on draft prs (#13706)
This commit is contained in:
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