mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Filter release workflow via if instead of on
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
302279695e
commit
1a0e7e10d6
1 file changed
+1
-4
@@ -3,13 +3,10 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- closed
|
- closed
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- "release/v*.*"
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
if: ${{ github.event.pull_request.merged == 'true' && contains(github.event.pull_request.labels.*.name, 'release') }}
|
if: ${{ github.event.pull_request.merged == 'true' && contains(github.event.pull_request.labels.*.name, 'release') && (github.event.pull_request.base.ref == 'master' || startsWith(github.event.pull_request.base.ref, 'release/v')) }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Release from lens
|
- name: Checkout Release from lens
|
||||||
|
|||||||
Reference in new issue
Block a user