From 7db8a85a1f3b4a2ccecd959c33fd88386e4a8691 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Mon, 12 Jul 2021 16:11:55 +0100 Subject: [PATCH] CI: Honour force-skip-ci label If a PR has the `force-skip-ci` label set, don't run the static tests. Fixes: #2220. Signed-off-by: James O. D. Hunt --- .github/workflows/static-checks.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/static-checks.yaml b/.github/workflows/static-checks.yaml index 9b8af9c53b..78b235ad02 100644 --- a/.github/workflows/static-checks.yaml +++ b/.github/workflows/static-checks.yaml @@ -1,7 +1,15 @@ -on: ["pull_request"] +on: + pull_request: + types: + - opened + - reopened + - labeled + - unlabeled + name: Static checks jobs: test: + if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }} strategy: matrix: go-version: [1.13.x, 1.14.x, 1.15.x]