ci(drone): tools/** 路径变更不触发构建
Some checks failed
continuous-integration/drone/push Build is passing
CI / test (push) Has been cancelled
CI / frontend (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Security Scan / backend-security (push) Has been cancelled
Security Scan / frontend-security (push) Has been cancelled
Some checks failed
continuous-integration/drone/push Build is passing
CI / test (push) Has been cancelled
CI / frontend (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
Security Scan / backend-security (push) Has been cancelled
Security Scan / frontend-security (push) Has been cancelled
工具脚本(如 sync-upstream.sh)的修改不需要 build/deploy,避免 浪费 CI 资源和占用部署窗口。
This commit is contained in:
@@ -5,6 +5,11 @@ name: default
|
||||
trigger:
|
||||
branch: [main]
|
||||
event: [push]
|
||||
# 仅当 commit 修改的文件全部在以下路径下时跳过构建
|
||||
# (只要有任何一个文件在排除路径之外,构建照常触发)
|
||||
paths:
|
||||
exclude:
|
||||
- tools/**
|
||||
|
||||
steps:
|
||||
- name: build-frontend
|
||||
|
||||
Reference in New Issue
Block a user