From 2f6e76e3a4c804597e4c9ce5fed34e10e5f3bbd3 Mon Sep 17 00:00:00 2001 From: Kexy Biscuit Date: Fri, 19 Jul 2024 22:33:05 +0800 Subject: [PATCH] CI: prevent multiple workflow runs on the same branch [skip ci] --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f07e79..32e35d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,13 @@ name: Rust -on: [push, pull_request] +on: + push: + branches: [ main ] + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: