From 8b70862db2cca7ec9584b720cbf3163dc51743f1 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Tue, 28 Apr 2020 09:07:50 +0200 Subject: [PATCH] chore: cancel previous builds --- .github/workflows/build.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 87147455..aca0e16f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,20 @@ on: pull_request: jobs: + cleanup: + runs-on: ubuntu-latest + timeout-minutes: 5 + + steps: + - name: github-cleanup + uses: renovatebot/internal-tools@v0 + continue-on-error: true + with: + command: github-cleanup + token: ${{ secrets.GITHUB_TOKEN }} + commitlint: + needs: [cleanup] runs-on: ubuntu-latest steps: - name: Checkout @@ -20,7 +33,9 @@ jobs: uses: wagoid/commitlint-github-action@v1.6.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + lint: + needs: [cleanup] runs-on: ubuntu-latest steps: - name: Checkout @@ -33,7 +48,9 @@ jobs: run: npm ci - name: Lint run: npm run lint + e2e: + needs: [cleanup] runs-on: ubuntu-latest steps: - name: Checkout