Skip to content

Commit

Permalink
Create check-pr-title.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MeilCli authored Jul 26, 2020
1 parent 02e79fd commit 5544829
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/check-pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 'Check-Title'

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: MeilCli/regex-match@master
id: regex
with:
regex_pattern: 'test: .*'
regex_option: 'g'
search_string: ${{ github.event.pull_request.title }}
- id: success
if: steps.regex.outputs.matched == 'true'
run: echo "::set-output name=result::success"
- id: failure
if: steps.regex.outputs.matched != 'true'
run: echo "::set-output name=result::failure"
- uses: MeilCli/check-run-auto@master
with:
name: 'Check/Title'
output_title: 'Check Title'
output_surmmary: 'Check Title of pull request'
result: ${{ steps.success.outputs.result + steps.failure.outputs.result }}

0 comments on commit 5544829

Please sign in to comment.