Skip to content

Commit feb9e9e

Browse files
snitin315fasttime
andauthored
ci: skip ci-package-manager job on release PR (#369)
Co-authored-by: Francesco Trotta <github@fasttime.org>
1 parent cb7e47e commit feb9e9e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci-package-manager.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,16 @@ on:
1111

1212
jobs:
1313
ci-package-manager:
14+
# Skip on Release Please PRs and when that PR is merged to main.
15+
# https://github.com/eslint/rewrite/issues/366
16+
if: >-
17+
!(github.event_name == 'pull_request' && github.event.pull_request.user.login == 'eslintbot' && contains(github.event.pull_request.title, 'chore: release'))
18+
&& !(
19+
github.event_name == 'push'
20+
&& github.ref_name == 'main'
21+
&& (
22+
contains(github.event.head_commit.message, 'chore: release')
23+
&& github.event.head_commit.author.username == 'eslintbot'
24+
)
25+
)
1426
uses: eslint/workflows/.github/workflows/ci-package-manager.yml@main

0 commit comments

Comments
 (0)