Skip to content

Commit a0ddf07

Browse files
Allow provide a branch for deploy
1 parent 4c112f3 commit a0ddf07

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/maven-deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ on:
2424
default: 'temurin'
2525
type: string
2626

27+
branch-to-deploy:
28+
description: 'Git branch name'
29+
required: false
30+
default: 'refs/heads/master'
31+
type: string
32+
2733
# allow single build
2834
concurrency:
2935
group: ${{ github.workflow }}-${{ github.ref }}
@@ -36,7 +42,7 @@ jobs:
3642
if: |
3743
github.event_name == 'push' &&
3844
github.repository_owner == 'codehaus-plexus' &&
39-
github.ref == 'refs/heads/master' &&
45+
github.ref == inputs.branch-to-deploy &&
4046
!startsWith(github.event.head_commit.message , '[maven-release-plugin] prepare release')
4147
4248
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)