Skip to content

Commit 426435d

Browse files
committed
Add manual trigger for testing release workflow
1 parent 1633817 commit 426435d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
name: Publish Release
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
types: [closed]
67
branches:
78
- main
89

910
jobs:
1011
publish:
11-
# Only run if PR was merged and branch starts with "release/v"
12-
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/v')
12+
# Only run if manually triggered OR (PR was merged and branch starts with "release/v")
13+
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/v'))
1314
runs-on: ubuntu-latest
1415
permissions:
1516
id-token: write

0 commit comments

Comments
 (0)