[skip ci] Add issue comment to trigger job (#13398)

Signed-off-by: Jenny Li <jing.li@zilliz.com>
pull/13421/head
Jenny Li 2021-12-15 10:49:09 +08:00 committed by GitHub
parent f480b314d9
commit 4023447506
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -3,7 +3,8 @@ name: Code Checker
# This workflow is triggered on pushes or pull request to the repository.
on:
workflow_dispatch:
issue_comment:
types: [created]
pull_request:
# file paths to consider in the event. Optional; defaults to all.
paths:
@ -23,6 +24,7 @@ on:
jobs:
ubuntu:
if: "github.event_name == 'pull_request' || (github.event_name == 'issue_comment'&& startsWith(github.event.comment.body, '/run-checks'))"
name: Code Checker AMD64 Ubuntu ${{ matrix.ubuntu }}
runs-on: ubuntu-latest
timeout-minutes: 60

View File

@ -3,7 +3,8 @@ name: Build and test
# This workflow is triggered on pushes or pull request to the repository.
on:
workflow_dispatch:
issue_comment:
types: [created]
push:
# file paths to consider in the event. Optional; defaults to all.
paths:
@ -35,6 +36,7 @@ on:
jobs:
ubuntu:
if: "github.event_name == 'pull_request' || (github.event_name == 'issue_comment'&& startsWith(github.event.comment.body, '/run-checks'))"
name: Build and test AMD64 Ubuntu ${{ matrix.ubuntu }}
runs-on: ubuntu-latest
timeout-minutes: 90