We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d287b69 commit 58c5096Copy full SHA for 58c5096
.github/workflows/release-branch.yml
.github/workflows/release.yml
@@ -6,6 +6,10 @@ on:
6
version:
7
description: "Release version"
8
required: true
9
+ ref:
10
+ description: "Branch, tag or SHA to checkout"
11
+ required: false
12
+ default: 'master'
13
jobs:
14
release:
15
name: Release
@@ -14,6 +18,7 @@ jobs:
18
- name: Checkout
19
uses: actions/checkout@v3
16
20
with:
21
+ ref: ${{ github.event.inputs.ref }}
17
22
fetch-depth: 0
23
24
- name: Set up Java
@@ -61,7 +66,7 @@ jobs:
61
66
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
62
67
git config --global user.name "GitHub Action"
63
68
git commit -a -m "Releasing version $VERSION"
64
- git push origin master
69
+ git push origin ${{ github.event.inputs.ref }}
65
70
71
- name: JReleaser output
72
if: always()
0 commit comments