From af4ea8dd8f2e5d4ff9cc608eabb29975380101b4 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Mon, 4 Jul 2022 15:45:08 +0200 Subject: [PATCH] Reduce GitHub Actions usage This removes the run on push for branches other than main, and preemptively stops runs on the same ref --- .github/workflows/ci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index db6f3b243..2b9436a99 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,9 +2,14 @@ name: CI on: push: + branches: [ main ] pull_request: branches: [ main ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: CARGO_TERM_COLOR: always