Skip to content

Commit c82d3c8

Browse files
committed
ci: extend Java CI / E2E / CodeQL / Maven publish to release/v7
So that pull requests targeting release/v7 are properly gated by the same checks as master, and pushes to release/v7 (i.e. merged bug fix PRs and release commits) trigger Maven Central publication for the 7.x line. Without this, branch protection on release/v7 would block all merges because no CI would ever fire to satisfy the required checks, and 7.x maven artifacts would never reach Maven Central. - build.yml + e2e.yml: add release/v7 to push branches - codeql.yml: add release/v7 to push + pull_request branches - publish-maven.yml: add release/v7 to workflow_run branches and gate
1 parent d7e8868 commit c82d3c8

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- master
8+
- release/v7
89
schedule:
910
- cron: "0 0 * * 0" # weekly
1011

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: "CodeQL"
22

33
on:
44
push:
5-
branches: ["master"]
5+
branches: ["master", "release/v7"]
66
pull_request:
7-
branches: ["master"]
7+
branches: ["master", "release/v7"]
88
schedule:
99
- cron: "0 0 * * 0" # weekly
1010

.github/workflows/e2e.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
push:
1010
branches:
1111
- master
12+
- release/v7
1213
workflow_dispatch: # Allow manual triggering
1314

1415
jobs:

.github/workflows/publish-maven.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_run:
55
workflows: ["Java CI", "E2E Tests"]
66
types: [completed]
7-
branches: [master]
7+
branches: [master, release/v7]
88

99
permissions:
1010
contents: read
@@ -18,10 +18,10 @@ concurrency:
1818
jobs:
1919
publish:
2020
runs-on: ubuntu-latest
21-
# Only consider successful completions on master from push events
21+
# Only consider successful completions on master / release branches from push events
2222
if: >
2323
github.event.workflow_run.conclusion == 'success' &&
24-
github.event.workflow_run.head_branch == 'master' &&
24+
(github.event.workflow_run.head_branch == 'master' || github.event.workflow_run.head_branch == 'release/v7') &&
2525
github.event.workflow_run.event == 'push'
2626
2727
steps:

0 commit comments

Comments
 (0)