From 4e27db8161aec185923afa024f62870ef5a6442c Mon Sep 17 00:00:00 2001 From: Kai Ninomiya Date: Thu, 9 Nov 2023 22:48:53 -0800 Subject: [PATCH] Actions: shorten timeout and enable cancel-in-progress (#3151) This should free up resources (even if we're not paying for them) and maybe make our builds run a little bit faster / trigger a little sooner. --- .github/workflows/pr.yml | 5 +++++ .github/workflows/push.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a398bf13ac82..d3c8e9f14875 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -4,9 +4,14 @@ on: pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest + timeout-minutes: 15 steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 6aa7a34e04f1..f1645e120a40 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -4,9 +4,14 @@ on: push: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest + timeout-minutes: 15 steps: - uses: actions/checkout@v2.3.1 with: