From 50fea9fa6f84e602879afb36e3175297c5c57f07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Fri, 5 Feb 2021 10:57:26 +0100 Subject: [PATCH] github: Only run kata-deploy-test on pull-requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We're currently running kata-deploy-test for every issue opened, for every comment in the issue. Issues, themselves, shouldn't be triggering those as they can't cause any code change. With this in mind, let's restrict ourselves to run those on pull-requests only. Fixes: #1341 Signed-off-by: Fabiano FidĂȘncio --- .github/workflows/kata-deploy-test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/kata-deploy-test.yaml b/.github/workflows/kata-deploy-test.yaml index 8a21514d1a..7291c157a9 100644 --- a/.github/workflows/kata-deploy-test.yaml +++ b/.github/workflows/kata-deploy-test.yaml @@ -2,6 +2,8 @@ on: issue_comment name: test-kata-deploy jobs: check_comments: + if: ${{ github.event.issue.pull_request }} + types: [created, edited] runs-on: ubuntu-latest steps: - name: Check for Command