Skip to content

Commit 01949a5

Browse files
committed
Add workflow_dispatch into maven-publish-snapshot workflow
1 parent 9c36545 commit 01949a5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/maven-publish-snapshot.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ on:
77
push:
88
branches:
99
- 'main'
10+
- '2023.06.x'
11+
workflow_dispatch:
12+
inputs:
13+
branch:
14+
description: "Branch to run workflow on"
15+
required: false
16+
default: "main"
1017

1118
jobs:
1219
build:
@@ -18,6 +25,8 @@ jobs:
1825

1926
steps:
2027
- uses: actions/checkout@v4
28+
with:
29+
ref: ${{ github.event.inputs.branch || github.ref }}
2130
- name: Set up JDK 17
2231
uses: actions/setup-java@v4
2332
with:
@@ -30,4 +39,4 @@ jobs:
3039
run: mvn --batch-mode deploy
3140
env:
3241
SONATYPE_USERNAME: ${{ secrets.OSSRH_USERNAME }}
33-
SONATYPE_TOKEN: ${{ secrets.OSSRH_TOKEN }}
42+
SONATYPE_TOKEN: ${{ secrets.OSSRH_TOKEN }}

0 commit comments

Comments
 (0)