From ff98d91472cad880bfdfbcaf21e245565d54f4db Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Mon, 19 Feb 2024 17:15:41 +0100 Subject: [PATCH] doc: add `concurrency` to example workflows The concurrency key is used to prevent multiple workflows from running at the same time Partially fixes #119 --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index e3ea486..f0cb642 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,11 @@ on: types: - created +# The concurrency key is used to prevent multiple workflows from running at the same time +concurrency: + group: ${{ github.head_ref }} + cancel-in-progress: true + jobs: tests: runs-on: ubuntu-latest @@ -129,6 +134,11 @@ on: branches: - main +# The concurrency key is used to prevent multiple workflows from running at the same time +concurrency: + group: ${{ github.head_ref }} + cancel-in-progress: true + jobs: tests: runs-on: ubuntu-latest