Skip to content
This repository was archived by the owner on Apr 27, 2024. It is now read-only.

Commit 460718c

Browse files
Update PR tests
1 parent 2e9b44d commit 460718c

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/run-pr-tests.yaml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
11
name: Runs tests on a PR
22
on:
3-
pull_request:
4-
types: [opened]
53
issue_comment:
64
types: [created]
75
jobs:
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

0 commit comments

Comments
 (0)