Skip to content

Commit 82fc824

Browse files
committed
ci: run enforcer check only on release-please PRs
- Update enforcer job in ci.yaml to run only when PR is raised from release-please--branches--main and title does not end with SNAPSHOT - Skips enforcer check on standard feature/bugfix PRs to eliminate 20+ minute CI turnaround time
1 parent 3df32ba commit 82fc824

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,10 @@ jobs:
401401
BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }}
402402
enforcer:
403403
needs: bulk-filter
404-
if: ${{ needs.bulk-filter.outputs.runnable == 'true' }}
404+
if: |
405+
needs.bulk-filter.outputs.runnable == 'true' &&
406+
github.head_ref == 'release-please--branches--main' &&
407+
!endsWith(github.event.pull_request.title, 'SNAPSHOT')
405408
runs-on: ubuntu-latest
406409
steps:
407410
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0

0 commit comments

Comments
 (0)