ci(workflows): 添加并发控制以取消进行中的部署

当同一工作流被多次触发时,自动取消之前的运行以避免资源冲突
This commit is contained in:
二叉树树
2026-01-19 00:11:36 +08:00
parent aa8a402247
commit 50f648d53a

View File

@@ -3,6 +3,11 @@ on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest