Skip to content

Commit 3b78aac

Browse files
committed
Only run release build when PR has certain label
1 parent 48a7827 commit 3b78aac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ name: Build and release
22

33
on:
44
push:
5-
branches:
6-
- master
75
tags:
86
- 'v*'
97
- 'cabal-install-*'
108
pull_request:
9+
types: [ labeled ]
1110
branches:
1211
- master
1312
schedule:
@@ -16,6 +15,7 @@ on:
1615

1716
jobs:
1817
release-workflow:
18+
if: ${{ github.event.label.name == 'run release build' }}
1919
uses: ./.github/workflows/reusable-release.yml
2020
with:
2121
branches: '["${{ github.ref }}"]'

0 commit comments

Comments
 (0)