Skip to content

Commit

Permalink
Replaces khan/pull-request-comment-trigger with inline functions
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <[email protected]>
  • Loading branch information
Jorge Turrado committed Nov 22, 2021
1 parent 00c644e commit 24039cd
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/pr-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,10 @@ jobs:
runs-on: ubuntu-latest
name: Comment evaluate
outputs:
run-e2e: ${{ steps.check-comment.outputs.triggered == 'true' && steps.check-permission.outputs.has-permission }}
run-e2e: startsWith(github.event.comment.body,'/run-e2e') && steps.check-permission.outputs.has-permission }}
steps:
- uses: khan/pull-request-comment-trigger@master
id: check-comment
with:
trigger: '/run-e2e'
prefix_only: true
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

- name: Check user permission
if: steps.check-comment.outputs.triggered == 'true'
if: startsWith(github.event.comment.body,'/run-e2e')
id: check-permission
uses: scherermichael-oss/action-has-permission@master
with:
Expand Down

0 comments on commit 24039cd

Please sign in to comment.