0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-09 01:17:43 +02:00

fix clone workflow

This commit is contained in:
Lunny Xiao 2025-11-04 12:36:00 -08:00
parent c6bd967966
commit 7db5b850ca
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -227,7 +227,7 @@ const cloneWorkflow = (sourceWorkflow: any) => {
if (!sourceWorkflow) return;
// Generate a unique temporary ID for the cloned workflow
const tempId = `clone-${sourceWorkflow.workflow_event}-${Date.now()}`;
const tempId = `${sourceWorkflow.workflow_event}`;
// Extract base name without any parenthetical descriptions
const baseName = (sourceWorkflow.display_name || sourceWorkflow.workflow_event || sourceWorkflow.event_id)