Skip to content

Commit 25e468d

Browse files
committed
Fix the realease workflow
1 parent 02ae3e7 commit 25e468d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
name: Automatic release
22
on:
3-
release:
3+
pull_request:
4+
branches:
5+
- master
6+
- main
47
types:
5-
- published
8+
- closed
69

710
workflow_dispatch:
811

912
jobs:
1013
release:
14+
if: |
15+
github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'Type: Release')
1116
permissions:
1217
contents: write
1318
id-token: write # OIDC

0 commit comments

Comments
 (0)