Skip to content

Commit 1afdbf9

Browse files
authored
Merge pull request #96 from Serverless-Devs/fix/ci-skip-existing-publish
ci: skip-existing on PyPI publish to unblock concurrent PR pushes
2 parents 5523af3 + 7ec9682 commit 1afdbf9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ jobs:
163163
with:
164164
password: ${{ secrets.PYPI_API_TOKEN }}
165165
verify-metadata: false
166+
# 当 PR 多次 push 或并发 CI 跑出相同版本号时,跳过已存在版本而非报错。
167+
# 根因是版本号自增逻辑依赖 PyPI API 拉取最新版本,存在缓存/并发窗口。
168+
# 不阻塞 PR 合入即可,长期方案是在版本号中嵌入 commit SHA 实现唯一化。
169+
skip-existing: true
166170

167171
- name: Create and push tag
168172
if: steps.changes.outputs.agentrun_changed == 'true'

0 commit comments

Comments
 (0)