From 5a64a2fc73abf03631901e3e244f7d5c412fe2e3 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 19 Aug 2024 08:04:55 +0800 Subject: [PATCH] Enforce concurrency, bash and use of color. --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fcc02c2..2725994 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,18 @@ name: CI - on: [pull_request] +# Cancel active CI runs for a PR before starting another run +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +defaults: + run: + shell: bash # https://github.com/beeware/briefcase/pull/912 + +env: + FORCE_COLOR: "1" + jobs: pre-commit: runs-on: ubuntu-latest