README.md
Kim's Avatar Kim's Avatar
Loading Transforming with Image Remix
0.0s
Image Remix Result
Try Image Remix Now
Kim Hudaya
Software Engineer
, mostly code with PHP, Rust, and React TypeScript. |
Follow my side quest building a product ⚔️
← Back to Blogs
...ion_concurrency.md

Disable Github Action Concurrency

So, by default Github Action enabled the concurrency, which means multiple action/job will be running at the same time. Recently my server crash because the deployment overlap with other deployment process. Causing file got replaced before it fully complete.

To disable the concurrency, you can simply add this line to your workflow file.

yml
name: Deploy to Production

# Add this line
concurrency:
  group: ${{ github.repository }}-prod
  # If enabled, then previous process will be cancelled.
  cancel-in-progress: false

jobs:
  Deploy:
    name: Deploy 🚀

That's it!

Last update: 2024-03-18 07:48:00 UTC (1 year ago)