Skip to content

Conversation

@vreshch
Copy link
Contributor

@vreshch vreshch commented Dec 12, 2025

Summary

This PR adds concurrency control to our GitHub Actions workflows to automatically cancel previous in-progress runs when new commits are pushed.

Changes

  • Added concurrency configuration to deploy.yml workflow
  • Added concurrency configuration to pr-validation.yml workflow

Benefits

  • Prevents multiple CI runs from executing simultaneously on the same branch/PR
  • Saves CI resources and reduces execution time
  • Only the latest run will continue, previous ones are automatically canceled

How it works

  • deploy.yml: Groups by branch reference (deploy-${{ github.ref }})
  • pr-validation.yml: Groups by PR number or branch reference (pr-validation-${{ github.event.pull_request.number || github.ref }})
  • Both have cancel-in-progress: true to cancel older runs when a new one starts

Add concurrency groups to both deploy and PR validation workflows to automatically cancel previous in-progress runs when new commits are pushed. This prevents multiple CI runs from executing simultaneously on the same branch/PR.
@github-actions
Copy link

Pull Request Validation Successful

Step Results:

  • 📦 Install dependencies: true
  • 🔍 Run linting: true
  • 🧪 Run tests: true
  • 🏗️ Build packages: true

🎉 All quality checks passed! Ready to merge.

📋 View workflow run


🐳 Docker Images Built Successfully!

🏷️ Tag: pr-16

  • Backend: ✅ Built
  • Frontend: ✅ Built

📋 View workflow


⏰ Generated at: 2025-12-12T01:31:38.848Z

@vreshch vreshch merged commit c46f945 into master Dec 12, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants