This repository was archived by the owner on Apr 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change 11name : Runs tests on a PR
22on :
3- pull_request :
4- types : [opened]
53 issue_comment :
64 types : [created]
75jobs :
86 test-pr :
97 runs-on : ubuntu-18.04
108 steps :
11- - name : Check comment
12- uses : benjamin-maynard/pull-request-comment-trigger@master
13- id : comment
14- with :
15- trigger : ' [Automation: Run PR Tests]'
16- reaction : rocket
17- env :
18- GITHUB_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
9+ -
10+ name : Exit if not a PR comment
11+ if : ${{ !github.event.issue.pull_request }}
12+ run : |
13+ exit 1
1914 -
2015 name : Determine if there is authority to continue
21- if : steps.comment.outputs.triggered == 'false' || steps. comment.outputs.comment_username != 'benjamin-maynard'
16+ if : ${{ github.event.issue.user.login != "benjamin-maynard" || github.event. comment.body != "[Run PR Tests]" }}
2217 run : |
23- echo "Comment Creator: ${{ steps.comment.outputs.triggered }}"
24- echo "Comment Username : ${{ steps. comment.outputs.comment_username }}"
18+ echo "Comment Creator: ${{ github.event.issue.user.login }}"
19+ echo "Comment Body : ${{ github.event. comment.body }}"
2520 exit 1
2621 -
2722 name : Checkout
You can’t perform that action at this time.
0 commit comments