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 (#6360)
Signed-off-by: Sebastian Malton <sebastian@malton.name> Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
302279695e
commit
6cfe0232b3
1 file changed
+1
-4
@@ -3,13 +3,10 @@ on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
branches:
|
||||
- master
|
||||
- "release/v*.*"
|
||||
jobs:
|
||||
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
|
||||
steps:
|
||||
- name: Checkout Release from lens
|
||||
|
||||
Reference in new issue
Block a user