Skip to content

Commit 5ed5f13

Browse files
committed
fix: improve sed command reliability in publish workflow and add debug output for pyproject.toml version update
1 parent 433315f commit 5ed5f13

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,15 @@ jobs:
2727
2828
- name: Update pyproject.toml version (not committed)
2929
run: |
30-
sed -i "s/^version = \".*\"/version = \"${TAG_VERSION}\"/" pyproject.toml
30+
echo "Current pyproject.toml content:"
31+
cat pyproject.toml
32+
echo "TAG_VERSION: ${TAG_VERSION}"
3133
34+
# 更可靠的 sed 命令
35+
sed -i "s/version = \"[^\"]*\"/version = \"${TAG_VERSION}\"/" pyproject.toml
36+
37+
echo "Updated pyproject.toml content:"
38+
cat pyproject.toml
3239
- name: Publish Custom Node
3340
uses: Comfy-Org/publish-node-action@v1
3441
with:

0 commit comments

Comments
 (0)