Skip to content

Commit 6de4605

Browse files
committed
ci: Configure 4.x branch for snapshot publishing
- Add 4.x to push and PR workflow branch triggers - Publish snapshots (not releases) when pushing to 4.x - Disable push_to_repo for snapshot builds
1 parent f303a80 commit 6de4605

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
pull_request:
44
branches:
55
- master
6+
- 4.x
67
jobs:
78
maven-package:
89
if: "!contains(github.event.head_commit.message, 'ci skip')"

.github/workflows/push.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- master
6+
- 4.x
67
env:
78
JFROG_USER: ${{ secrets.ARTIFACTORY_AUTH_USER }}
89
JFROG_PASS: ${{ secrets.ARTIFACTORY_AUTH_TOKEN }}
@@ -64,5 +65,5 @@ jobs:
6465
uses: entur/gha-maven-central/.github/workflows/maven-publish.yml@v1
6566
secrets: inherit
6667
with:
67-
push_to_repo: true
68-
snapshot: false
68+
push_to_repo: ${{ github.ref != 'refs/heads/4.x' }}
69+
snapshot: ${{ github.ref == 'refs/heads/4.x' }}

0 commit comments

Comments
 (0)