From 25322fad056d0cfe7f426acce8e2fb8fbeaccc9d Mon Sep 17 00:00:00 2001 From: Thomas Li <47963215+lithomas1@users.noreply.github.com> Date: Sat, 26 Feb 2022 16:09:24 -0800 Subject: [PATCH] CI: Run sdist build less often (#44731) --- .github/workflows/sdist.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index dd030f1aacc44..1d9c8701d42d4 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -9,11 +9,13 @@ on: branches: - main - 1.4.x + types: [labeled, opened, synchronize, reopened] paths-ignore: - "doc/**" jobs: build: + if: ${{ github.event.label.name == 'Build' || contains(github.event.pull_request.labels.*.name, 'Build') || github.event_name == 'push'}} runs-on: ubuntu-latest timeout-minutes: 60 defaults: