mirror of
https://github.com/afoim/fuwari.git
synced 2026-01-31 00:53:19 +08:00
ci(workflows): 添加并发控制以取消进行中的部署
当同一工作流被多次触发时,自动取消之前的运行以避免资源冲突
This commit is contained in:
5
.github/workflows/deploy.yml
vendored
5
.github/workflows/deploy.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user