From cbf3bb18da08a8354e3378ce7178d768bf64151f Mon Sep 17 00:00:00 2001 From: luzzyzhang Date: Thu, 12 Aug 2021 21:27:17 +0800 Subject: [PATCH] ci(yaml): fix only pull request run ci lint --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 590fc15a..986de41f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,7 @@ on: jobs: check-commit: runs-on: ubuntu-latest + if: ${{ github.event.pull_request }} steps: - uses: actions/checkout@v2.3.1 with: @@ -18,6 +19,7 @@ jobs: check-format: runs-on: ubuntu-latest + if: ${{ github.event.pull_request }} steps: - uses: actions/checkout@v2.3.1 with: -- GitLab