From 01eb5c9712fac38f6e0edf7c581466f853021f8c Mon Sep 17 00:00:00 2001 From: Derek Slenk Date: Fri, 18 Jul 2025 00:04:54 -0400 Subject: [PATCH] Add workflow concurrency control to prevent concurrent CI runs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added concurrency groups to both CI and Deploy workflows to: - Queue jobs per workflow and branch combination - Cancel older runs when new commits are pushed - Prevent resource conflicts on self-hosted runners 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .forgejo/workflows/ci.yml | 4 ++++ .forgejo/workflows/deploy.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 5c7ee16..1243f0a 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -6,6 +6,10 @@ on: pull_request: branches: [ main, master ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: runs-on: self-hosted diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 1dc61d8..4705775 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -5,6 +5,10 @@ on: branches: [ main, master ] workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: deploy: runs-on: self-hosted