From c330a78fca29ebf9980748aed1122071260cbf46 Mon Sep 17 00:00:00 2001 From: Rouven Himmelstein Date: Wed, 24 Jan 2024 13:00:10 +0100 Subject: [PATCH] feat: run this pipeline once at a time --- .github/workflows/pipeline.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 13ca5d8..d407183 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -1,4 +1,6 @@ name: Container release pipeline + + on: push: workflow_dispatch: # Allows you to run this workflow manually from the Actions tab @@ -8,11 +10,18 @@ on: schedule: - cron: "0 0 * * 0" # weekly at sunday night + +# Avoid running this workflow multiple times at the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + + env: - CONTAINER_FILE: ./Containerfile IMAGE_NAME: rouhim/sons-of-the-forest-server IMAGE_TAG: latest + jobs: