github: Only run kata-deploy-test on pull-requests

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 <fidencio@redhat.com>
This commit is contained in:
Fabiano Fidêncio 2021-02-05 10:57:26 +01:00
parent 38b5a43267
commit 50fea9fa6f

View File

@ -2,6 +2,8 @@ on: issue_comment
name: test-kata-deploy name: test-kata-deploy
jobs: jobs:
check_comments: check_comments:
if: ${{ github.event.issue.pull_request }}
types: [created, edited]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check for Command - name: Check for Command