Skip to content

Commit 614d0bb

Browse files
Support dispatching the publish-release CI script (#649)
1 parent 33f5618 commit 614d0bb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/publish-release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,20 @@ on:
77
paths:
88
- 'package.json'
99
- 'package-lock.json'
10+
workflow_dispatch:
11+
inputs:
12+
tag:
13+
type: string
14+
description: "The release tag that should be published (i.e. `v1.2.3`)"
15+
required: true
1016

1117
jobs:
1218
run:
13-
if: startsWith( github.head_ref, 'release/')
19+
if: |
20+
(github.event_name == 'pull_request' && startsWith(github.head_ref, 'release/')) ||
21+
(github.event_name == 'workflow_dispatch')
1422
uses: rokucommunity/workflows/.github/workflows/publish-release.yml@master
1523
with:
1624
release-type: "vsce"
17-
ref: ${{ github.event.pull_request.merge_commit_sha }}
25+
ref: ${{ github.event.inputs.tag || github.event.pull_request.merge_commit_sha }}
1826
secrets: inherit

0 commit comments

Comments
 (0)