From c93b69c05675b5c93177f8189a46855569eaaff1 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Mon, 23 Aug 2021 10:46:58 +0200 Subject: [PATCH] ci: update workflow (#564) --- .github/workflows/build.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c236d0f9..08c50f75 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,15 +2,17 @@ name: Build on: push: - branches: - - main - - 'renovate/**' - pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.event.number || github.ref }} + cancel-in-progress: true + jobs: commitlint: runs-on: ubuntu-latest + if: ${{ github.event_name != 'pull_request' || github.repository_owner != github.event.pull_request.head.repo.owner.login }} + steps: - name: Checkout uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # renovate: tag=v2.3.4 @@ -21,6 +23,8 @@ jobs: lint: runs-on: ubuntu-latest + if: ${{ github.event_name != 'pull_request' || github.repository_owner != github.event.pull_request.head.repo.owner.login }} + steps: - name: Checkout uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # renovate: tag=v2.3.4 @@ -36,6 +40,8 @@ jobs: e2e: runs-on: ubuntu-latest + if: ${{ github.event_name != 'pull_request' || github.repository_owner != github.event.pull_request.head.repo.owner.login }} + strategy: fail-fast: false matrix: