Skip to content

Commit

Permalink
workflows/release: pattern-match on PR title
Browse files Browse the repository at this point in the history
This adds an additional condition in order to run sanity check all
PRs starting with `Release` (case-insensitive).
  • Loading branch information
lucab committed Nov 16, 2020
1 parent 1ac80fa commit ee57fe2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ee57fe2

Please sign in to comment.