fix: improve sed command reliability in publish workflow and add debug output for pyproject.toml version update

This commit is contained in:
GACLove
2025-07-16 19:10:28 +08:00
parent 433315f4a1
commit 5ed5f13594
+8 -1
View File
@@ -27,8 +27,15 @@ jobs:
- name: Update pyproject.toml version (not committed)
run: |
sed -i "s/^version = \".*\"/version = \"${TAG_VERSION}\"/" pyproject.toml
echo "Current pyproject.toml content:"
cat pyproject.toml
echo "TAG_VERSION: ${TAG_VERSION}"
# 更可靠的 sed 命令
sed -i "s/version = \"[^\"]*\"/version = \"${TAG_VERSION}\"/" pyproject.toml
echo "Updated pyproject.toml content:"
cat pyproject.toml
- name: Publish Custom Node
uses: Comfy-Org/publish-node-action@v1
with: