Skip to content

Commit c298d8a

Browse files
[fix] Weekly release workflow adjustments (#7060)
Follow-up adjustments to the weekly ComfyUI release automation workflow. ## Changes 1. **Rename workflow to follow conventions** - File: `weekly-comfyui-release.yaml` → `release-weekly-comfyui.yaml` - Name: "Weekly ComfyUI Release" → "Release: Weekly ComfyUI" - Matches pattern of other `release-*` workflows 2. **Sync fork with upstream before creating PR** - Fetches latest upstream/master before making changes - Ensures PR only shows requirements.txt diff, not stale fork commits - Does not modify fork's master branch (only pushes automation branch) ## Testing After merge, can test via manual workflow dispatch in Actions tab. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7060-fix-Weekly-release-workflow-adjustments-2bb6d73d365081008436d1b9e5f7dd65) by [Unito](https://www.unito.io)
1 parent b50b34a commit c298d8a

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/weekly-comfyui-release.yaml renamed to .github/workflows/release-weekly-comfyui.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Automated weekly workflow to bump ComfyUI frontend RC releases
2-
name: "Weekly ComfyUI Release"
2+
name: "Release: Weekly ComfyUI"
33

44
on:
55
# Schedule for Monday at 12:00 PM PST (20:00 UTC)
@@ -143,6 +143,28 @@ jobs:
143143
token: ${{ secrets.PR_GH_TOKEN }}
144144
path: comfyui
145145

146+
- name: Sync with upstream
147+
working-directory: comfyui
148+
run: |
149+
set -euo pipefail
150+
151+
# Fetch latest upstream to base our branch on fresh code
152+
# Note: This only affects the local checkout, NOT the fork's master branch
153+
# We only push the automation branch, leaving the fork's master untouched
154+
echo "Fetching upstream master..."
155+
if ! git fetch https://github.com/comfyanonymous/ComfyUI.git master; then
156+
echo "Failed to fetch upstream master"
157+
exit 1
158+
fi
159+
160+
echo "Checking out upstream master..."
161+
if ! git checkout FETCH_HEAD; then
162+
echo "Failed to checkout FETCH_HEAD"
163+
exit 1
164+
fi
165+
166+
echo "Successfully synced with upstream master"
167+
146168
- name: Update requirements.txt
147169
working-directory: comfyui
148170
run: |

0 commit comments

Comments
 (0)