Skip to content

Commit 58c5096

Browse files
author
Julien Ruaux
committed
build: Added ref optional input to release workflow
1 parent d287b69 commit 58c5096

File tree

2 files changed

+6
-78
lines changed

2 files changed

+6
-78
lines changed

.github/workflows/release-branch.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
version:
77
description: "Release version"
88
required: true
9+
ref:
10+
description: "Branch, tag or SHA to checkout"
11+
required: false
12+
default: 'master'
913
jobs:
1014
release:
1115
name: Release
@@ -14,6 +18,7 @@ jobs:
1418
- name: Checkout
1519
uses: actions/checkout@v3
1620
with:
21+
ref: ${{ github.event.inputs.ref }}
1722
fetch-depth: 0
1823

1924
- name: Set up Java
@@ -61,7 +66,7 @@ jobs:
6166
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
6267
git config --global user.name "GitHub Action"
6368
git commit -a -m "Releasing version $VERSION"
64-
git push origin master
69+
git push origin ${{ github.event.inputs.ref }}
6570
6671
- name: JReleaser output
6772
if: always()

0 commit comments

Comments
 (0)