跳至主要內容
取消 Vercel 发布

取消 Vercel 发布

在 Github Actions 中,我们可以选择性地 取消 workflow 的执行,比如 在 git message 中 填写 [skip ci] 或者 [ci skip] 即可达到目的。
但是,在 vercel 中,这种方法不起作用。

搜索了一下资料,发现 vercel 中也可以自定义来实现。

bash -c 'echo "$VERCEL_GIT_COMMIT_MESSAGE" | grep -iE "\[skip ci\]|\[ci skip\]"'
# 单独忽略 docs-ci
# bash -c 'echo "$VERCEL_GIT_COMMIT_MESSAGE" | grep -iE "\[skip (docs-)?ci\]|\[(docs-)?ci skip\]"'

Zhao Bin大约 1 分钟devopsdevopsci/cd