Skip to content

Commit ff237d4

Browse files
chore: Allow workflow_dispatch for the release workflow
1 parent ec8d5bb commit ff237d4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
types: [closed]
66
branches: [master]
7+
workflow_dispatch:
78

89
permissions:
910
contents: read
@@ -20,8 +21,10 @@ jobs:
2021
runs-on: ubuntu-latest
2122
# Run when PR with 'release' label is merged to master
2223
if: |
23-
github.event.pull_request.merged == true
24-
&& contains(github.event.pull_request.labels.*.name, 'release')
24+
github.event_name == 'workflow_dispatch' ||
25+
(github.event_name == 'pull_request' &&
26+
github.event.pull_request.merged == true &&
27+
contains(github.event.pull_request.labels.*.name, 'release'))
2528
outputs:
2629
should-release: ${{ steps.check.outputs.should-release }}
2730
steps:
@@ -101,8 +104,8 @@ jobs:
101104
- name: Install Rust
102105
uses: dtolnay/rust-toolchain@0b1efabc08b657293548b77fb76cc02d26091c7e
103106
with:
104-
toolchain: 1.91.1
105-
components: cargo
107+
toolchain: 1.91.1
108+
components: cargo
106109

107110
- name: Cache Sampo CLI
108111
id: cache-sampo

0 commit comments

Comments
 (0)