From 6ebef0a414c2101e2e06f5ac7aa11027a78602a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=80=E1=B4=8D=E1=B4=9B=E1=B4=8F=E1=B4=80=E1=B4=87?= =?UTF-8?q?=CA=80?= Date: Fri, 28 Jun 2024 00:04:30 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=AF=B9=E5=A4=84=E4=BA=8E=20draft=20?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=9A=84=20PR=20=E7=A6=81=E7=94=A8=20workflo?= =?UTF-8?q?w=20(#123)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 6fb2fe4..304ded5 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -5,8 +5,7 @@ on: branches: - main pull_request: - branches: - - "**" + types: ['opened', 'reopened', 'synchronize', 'ready_for_review'] concurrency: # Allow only one workflow per any non-`main` branch. @@ -22,6 +21,7 @@ jobs: tests: name: Run Clippy and tests runs-on: ubuntu-latest + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} steps: - name: Checkout repo uses: actions/checkout@v4