Merge pull request #2240 from lucab/ups/ci-pr-title

workflows/release: pattern-match on PR title
This commit is contained in:
OpenShift Merge Robot 2020-11-16 20:33:46 +01:00 committed by GitHub
commit abbe7ea4e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,14 @@
---
name: Release sanity
name: Release
on:
pull_request:
branches: [master]
types: [labeled]
jobs:
ci-release-build:
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
steps:
- name: Clone repository