Skip to content

Commit ccca67c

Browse files
committed
skip pr-lint when push; When the PR lint job succeeds or is skipped, the jobs depending on it can still run.
1 parent fb43e54 commit ccca67c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/pr-check.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ concurrency:
1414
jobs:
1515
pr-lint:
1616
name: PR Lint
17+
if: github.event_name == 'pull_request'
1718
runs-on: ubuntu-latest
1819

1920
steps:
@@ -131,7 +132,7 @@ jobs:
131132
132133
build:
133134
name: Build ${{ matrix.os-name }}(JDK ${{ matrix.java }} / ${{ matrix.arch }})
134-
if: github.event.action != 'edited'
135+
if: github.event.action != 'edited' && !failure()
135136
needs: [pr-lint, checkstyle]
136137
runs-on: ${{ matrix.runner }}
137138
strategy:
@@ -178,7 +179,7 @@ jobs:
178179

179180
docker-build-rockylinux:
180181
name: Build rockylinux (JDK 8 / x86_64)
181-
if: github.event.action != 'edited'
182+
if: github.event.action != 'edited' && !failure()
182183
needs: [pr-lint, checkstyle]
183184
runs-on: ubuntu-latest
184185

@@ -237,7 +238,7 @@ jobs:
237238

238239
docker-build-debian11:
239240
name: Build debian11 (JDK 8 / x86_64)
240-
if: github.event.action != 'edited'
241+
if: github.event.action != 'edited' && !failure()
241242
needs: [pr-lint, checkstyle]
242243
runs-on: ubuntu-latest
243244

0 commit comments

Comments
 (0)