From a8e0235bf67410a70bfb8456a8489fef3fa67c9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Thu, 12 Nov 2020 13:44:56 +0100 Subject: [PATCH] chore(validate): Filter out all-contributors branches --- .github/workflows/validate.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index e14fd6b..e50939f 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -3,14 +3,16 @@ on: push: branches: [ - "+([0-9])?(.{+([0-9]),x}).x", - "master", - "next", - "next-major", - "beta", - "alpha", + '+([0-9])?(.{+([0-9]),x}).x', + 'master', + 'next', + 'next-major', + 'beta', + 'alpha', + '!all-contributors/**', ] - pull_request: {} + pull_request: + branches-ignore: ['all-contributors/**'] jobs: main: strategy: @@ -41,7 +43,7 @@ jobs: needs: main runs-on: ubuntu-latest if: - ${{ github.repository == 'MichaelDeBoey/gatsby-remark-embedder' && + ${{ github.repository == 'testing-library/cypress-testing-library' && contains('refs/heads/master,refs/heads/beta,refs/heads/next,refs/heads/alpha', github.ref) && github.event_name == 'push' }} steps: