Skip to content

Commit a533a0f

Browse files
authored
Update release.yml
1 parent 8b8772d commit a533a0f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Release To Maven Central
22
run-name: Publishing Package Version ${{ github.event.inputs.Version }}
3-
# Run workflow on commits to the `main` branch
3+
44
on:
55
workflow_dispatch:
66
inputs:
@@ -16,6 +16,8 @@ jobs:
1616
steps:
1717
- name: Check out git repository
1818
uses: actions/checkout@v2
19+
with:
20+
ref: ${{ github.ref_name }}
1921

2022
- name: Install Java and Maven setup
2123
uses: actions/setup-java@v1
@@ -45,7 +47,7 @@ jobs:
4547
uses: CasperWA/push-protected@v2
4648
with:
4749
token: ${{ secrets.PAT }}
48-
branch: main
50+
branch: ${{ github.ref_name }}
4951
- name: Delete the intermediate branch
5052
if: steps.release.outputs.exit_code == 0
5153
run: |

0 commit comments

Comments
 (0)