Skip to content

Commit 037fc74

Browse files
authored
Add branch filter for release workflow
Specify branches for the release workflow trigger.
1 parent a4fd576 commit 037fc74

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ name: Release
22

33
on:
44
push:
5+
branches:
6+
- main
57
tags:
68
- "v*"
79
workflow_dispatch:
8-
10+
911
permissions:
1012
contents: write
1113

@@ -30,4 +32,4 @@ jobs:
3032
version: "~> v2"
3133
args: release --clean
3234
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)