From c26be440a5fc90b95b4d79d587f1f28ce53c5e03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Mon, 9 Nov 2020 22:42:01 +0100 Subject: [PATCH] chore: only run push jobs on releasable branches --- .github/workflows/validate.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 5fe3e29..e14fd6b 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -1,5 +1,16 @@ name: validate -on: [push, pull_request] +on: + push: + branches: + [ + "+([0-9])?(.{+([0-9]),x}).x", + "master", + "next", + "next-major", + "beta", + "alpha", + ] + pull_request: {} jobs: main: strategy: