Update pr-check.yaml

This commit is contained in:
Yogesh Choudhary Paliyal
2023-03-05 19:16:07 +05:30
committed by GitHub
parent 9bbfef35e7
commit 5156d6cfb9

View File

@@ -3,10 +3,24 @@ name: PR Check
on:
pull_request:
types: [ ready_for_review ]
issue_comment:
types: [created, edited, deleted]
jobs:
validatePr:
name: 'Validate PR comment'
if: contains(github.event.comment.html_url, '/pull/') # check if the comments come from pull request, exclude those from issue.
runs-on: [re-centos7]
steps:
- name: test
if: contains(github.event.comment.body, '/test') # check the comment if it contains the keywords
run: |
echo test
spotless:
needs: validatePr
name: 'Spotless'
runs-on: ubuntu-latest
steps:
@@ -21,6 +35,7 @@ jobs:
tests:
name: 'Tests'
needs: validatePr
runs-on: ubuntu-latest
steps:
@@ -34,6 +49,7 @@ jobs:
build:
name: 'Build Production Debug Build'
needs: validatePr
runs-on: ubuntu-latest
steps: