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.
publish-release
1 parent 33f5618 commit d15afbbCopy full SHA for d15afbb
.github/workflows/publish-release.yml
@@ -7,12 +7,18 @@ on:
7
paths:
8
- 'package.json'
9
- '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
16
17
jobs:
18
run:
- if: startsWith( github.head_ref, 'release/')
19
+ if: (github.event_name == 'pull_request' && startsWith(github.head_ref, 'release/')) || (github.event_name == 'workflow_dispatch')
20
uses: rokucommunity/workflows/.github/workflows/publish-release.yml@master
21
with:
22
release-type: "vsce"
- ref: ${{ github.event.pull_request.merge_commit_sha }}
23
+ ref: ${{ github.event.inputs.tag || github.event.pull_request.merge_commit_sha }}
24
secrets: inherit
0 commit comments