From 24039cdcaffbf906b52530312a95c60876cc41ac Mon Sep 17 00:00:00 2001 From: Jorge Turrado Date: Mon, 22 Nov 2021 12:08:20 +0100 Subject: [PATCH] Replaces khan/pull-request-comment-trigger with inline functions Signed-off-by: Jorge Turrado --- .github/workflows/pr-e2e.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pr-e2e.yml b/.github/workflows/pr-e2e.yml index 9ba5e91855b..3af6ec50d57 100644 --- a/.github/workflows/pr-e2e.yml +++ b/.github/workflows/pr-e2e.yml @@ -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: