Skip to content

Commit

Permalink
Merge pull request #15223 from mshima/skip_ci-close
Browse files Browse the repository at this point in the history
Cancel PR builds on close.
  • Loading branch information
DanielFran authored Jun 5, 2021
2 parents 7591d71 + 2451af9 commit 6e63904
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/angular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ on:
- 'generators/*client/templates/react/**'
- 'generators/*client/templates/vue/**'
pull_request:
types: [closed, opened, synchronize, reopened]
branches:
- '*'
paths-ignore:
Expand Down Expand Up @@ -75,6 +76,7 @@ jobs:
!contains(github.event.head_commit.message, '[skip ci]') &&
!contains(github.event.pull_request.title, '[skip ci]') &&
!contains(github.event.pull_request.title, '[ci skip]') &&
github.event.action != 'closed' &&
(github.event.pull_request.draft == false || !contains(github.event.pull_request.labels.*.name, 'pr: skip-ci'))
timeout-minutes: 40
strategy:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ on:
branches-ignore:
- 'dependabot/**'
pull_request:
types: [closed, opened, synchronize, reopened]
branches:
- '*'
jobs:
generator-jhipster:
if: >-
github.event.action != 'closed'
name: npm test
runs-on: ${{ matrix.os }}
timeout-minutes: 20
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ on:
branches-ignore:
- 'dependabot/**'
pull_request:
types: [closed, opened, synchronize, reopened]
branches:
- '*'

Expand All @@ -39,6 +40,7 @@ jobs:
!contains(github.event.head_commit.message, '[skip ci]') &&
!contains(github.event.pull_request.title, '[skip ci]') &&
!contains(github.event.pull_request.title, '[ci skip]') &&
github.event.action != 'closed' &&
!contains(github.event.pull_request.user.login, 'dependabot')
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/incremental-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ on:
- 'dependabot/**'
- 'skip_ci*'
pull_request:
types: [closed, opened, synchronize, reopened]
branches:
- '*'
paths:
Expand Down Expand Up @@ -71,6 +72,7 @@ jobs:
!contains(github.event.head_commit.message, '[skip ci]') &&
!contains(github.event.pull_request.title, '[skip ci]') &&
!contains(github.event.pull_request.title, '[ci skip]') &&
github.event.action != 'closed' &&
(github.event.pull_request.draft == false || !contains(github.event.pull_request.labels.*.name, 'pr: skip-ci')) &&
!contains(github.event.pull_request.user.login, 'dependabot')
timeout-minutes: 40
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/jdl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ on:
- 'dependabot/**'
- 'skip_ci*'
pull_request:
types: [closed, opened, synchronize, reopened]
branches:
- '*'
paths-ignore:
Expand Down Expand Up @@ -66,6 +67,7 @@ jobs:
!contains(github.event.head_commit.message, '[skip ci]') &&
!contains(github.event.pull_request.title, '[skip ci]') &&
!contains(github.event.pull_request.title, '[ci skip]') &&
github.event.action != 'closed' &&
(github.event.pull_request.draft == false || !contains(github.event.pull_request.labels.*.name, 'pr: skip-ci'))
timeout-minutes: 40
strategy:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ on:
- 'generators/*client/templates/angular/**'
- 'generators/*client/templates/vue/**'
pull_request:
types: [closed, opened, synchronize, reopened]
branches:
- '*'
paths-ignore:
Expand Down Expand Up @@ -75,6 +76,7 @@ jobs:
!contains(github.event.head_commit.message, '[skip ci]') &&
!contains(github.event.pull_request.title, '[skip ci]') &&
!contains(github.event.pull_request.title, '[ci skip]') &&
github.event.action != 'closed' &&
(github.event.pull_request.draft == false || !contains(github.event.pull_request.labels.*.name, 'pr: skip-ci'))
timeout-minutes: 40
strategy:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/vue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ on:
- 'generators/*client/templates/angular/**'
- 'generators/*client/templates/react/**'
pull_request:
types: [closed, opened, synchronize, reopened]
branches:
- '*'
paths-ignore:
Expand Down Expand Up @@ -75,6 +76,7 @@ jobs:
!contains(github.event.head_commit.message, '[skip ci]') &&
!contains(github.event.pull_request.title, '[skip ci]') &&
!contains(github.event.pull_request.title, '[ci skip]') &&
github.event.action != 'closed' &&
(github.event.pull_request.draft == false || !contains(github.event.pull_request.labels.*.name, 'pr: skip-ci'))
timeout-minutes: 40
strategy:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/webflux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ on:
- 'generators/*client/templates/react/**'
- 'generators/*client/templates/vue/**'
pull_request:
types: [closed, opened, synchronize, reopened]
branches:
- '*'
paths-ignore:
Expand Down Expand Up @@ -76,6 +77,7 @@ jobs:
!contains(github.event.head_commit.message, '[skip ci]') &&
!contains(github.event.pull_request.title, '[skip ci]') &&
!contains(github.event.pull_request.title, '[ci skip]') &&
github.event.action != 'closed' &&
(github.event.pull_request.draft == false || !contains(github.event.pull_request.labels.*.name, 'pr: skip-ci')) &&
!contains(github.event.pull_request.user.login, 'dependabot')
timeout-minutes: 40
Expand Down

0 comments on commit 6e63904

Please sign in to comment.