Skip to content

Commit bcfe7bd

Browse files
authored
Merge pull request #840 from Disane87/ci/skip-checks-on-release-pr
ci: skip PR title and target-branch checks on the dev->main release PR
2 parents 577d36d + cfca4f0 commit bcfe7bd

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/check-conventional-commits.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
jobs:
88
check-commits:
99
runs-on: ubuntu-latest
10+
# Skip the auto-generated dev -> main release PR (its title is intentionally
11+
# a non-conventional-commit summary).
12+
if: |
13+
!(github.event.pull_request.head.ref == 'dev' &&
14+
github.event.pull_request.base.ref == 'main')
1015
permissions:
1116
pull-requests: write
1217
statuses: write

.github/workflows/check-pr-target-branch.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ on:
99
jobs:
1010
check-target-branch:
1111
runs-on: ubuntu-latest
12-
# Skip for bot accounts (renovate, dependabot, etc.)
12+
# Skip for bot accounts (renovate, dependabot, etc.) and for the
13+
# auto-generated dev -> main release PR (opened by github-actions[bot],
14+
# which the maintainer-permission lookup rejects).
1315
if: |
1416
github.actor != 'renovate[bot]' &&
1517
github.actor != 'dependabot[bot]' &&
16-
!contains(github.actor, '[bot]')
18+
!contains(github.actor, '[bot]') &&
19+
!(github.event.pull_request.head.ref == 'dev' &&
20+
github.event.pull_request.base.ref == 'main')
1721
permissions:
1822
pull-requests: write
1923
issues: write

0 commit comments

Comments
 (0)