workflows/release: pattern-match on PR title
authorLuca BRUNO <luca.bruno@coreos.com>
Mon, 16 Nov 2020 17:08:52 +0000 (17:08 +0000)
committerLuca BRUNO <luca.bruno@coreos.com>
Mon, 16 Nov 2020 17:13:47 +0000 (17:13 +0000)
This adds an additional condition in order to run sanity check all
PRs starting with `Release` (case-insensitive).

.github/workflows/release.yml

index 7189a976191c398544eee31f9443e0338f7b8780..b2cf3f5a538a70aab3b252cd6fca75208004fd28 100644 (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