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 (8 months ago)