Skip to content

Commit 40072d4

Browse files
Add dispatcher to make-release-artifacts
1 parent 9c87a3c commit 40072d4

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/make-release-artifacts.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,25 @@ on:
66
- reopened
77
- opened
88
- synchronize
9+
workflow_dispatch:
10+
inputs:
11+
tag:
12+
description: 'The release tag that should be referenced (i.e. `v1.2.3`)'
13+
required: true
14+
force:
15+
description: 'Force the release artifacts to be created and uploaded'
16+
required: false
17+
default: 'false'
918

1019
jobs:
1120
run:
12-
if: startsWith( github.head_ref, 'release/')
21+
if: github.event_name == 'workflow_dispatch' || startsWith( github.head_ref, 'release/')
1322
uses: rokucommunity/workflows/.github/workflows/make-release-artifacts.yml@develop
1423
with:
15-
branch: ${{ github.event.pull_request.head.ref }}
24+
branch: ${{ github.event.inputs.tag || github.event.pull_request.head.ref }}
1625
node-version: "16.20.2"
1726
artifact-paths: "./*.tgz" # "*.vsix"
27+
force: ${{ github.event.inputs.force || 'false' }}
1828
workflows-ref: 'develop'
1929
secrets: inherit
2030

0 commit comments

Comments
 (0)