Skip to content

Commit 8260149

Browse files
authored
Allow selecting a custom release branch (#6470)
1 parent 3483c7d commit 8260149

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/release-prod.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Production Release
22

3-
on: workflow_dispatch
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release-branch:
7+
description: 'Release branch'
8+
type: string
9+
default: 'release'
10+
required: true
411

512
jobs:
613
deploy:
@@ -20,7 +27,7 @@ jobs:
2027
with:
2128
# Release script requires git history and tags.
2229
fetch-depth: 0
23-
ref: release
30+
ref: ${{ github.event.inputs.release-branch }}
2431
token: ${{ secrets.OSS_BOT_GITHUB_TOKEN }}
2532
- name: Yarn install
2633
run: yarn

0 commit comments

Comments
 (0)