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 <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2021-07-12 16:11:55 +01:00
parent 6c39c353e6
commit 7db8a85a1f

View File

@ -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]