workflows/release: pattern-match on PR title

This adds an additional condition in order to run sanity check all
PRs starting with `Release` (case-insensitive).
This commit is contained in:
Luca BRUNO 2020-11-16 17:08:52 +00:00
parent 1ac80fa782
commit ee57fe2821
No known key found for this signature in database
GPG Key ID: A9834A2252078E4E
1 changed files with 2 additions and 3 deletions

View File

@ -1,15 +1,14 @@
--- ---
name: Release sanity name: Release
on: on:
pull_request: pull_request:
branches: [master] branches: [master]
types: [labeled]
jobs: jobs:
ci-release-build: ci-release-build:
name: "Sanity check release commits" name: "Sanity check release commits"
if: ${{ github.event.label.name == 'kind/release' }} if: ${{ github.event.label.name == 'kind/release' || startsWith(github.event.pull_request.title, 'Release') }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Clone repository - name: Clone repository