Skip to content

Commit d6d9ae6

Browse files
fix: public workflow issue
1 parent af2e4ca commit d6d9ae6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

shared.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8053,6 +8053,13 @@ func SaveWorkflow(resp http.ResponseWriter, request *http.Request) {
80538053
return
80548054
}
80558055

8056+
// This fix the region issues with public workflow but can it create problem?
8057+
if len(tmpworkflow.ID) == 0 || workflow.Public == true {
8058+
log.Printf("[WARNING] Failed to find public workflow in region, using user provided workflow data")
8059+
tmp := workflow
8060+
tmpworkflow = &tmp
8061+
}
8062+
80568063
if project.Environment == "cloud" && tmpworkflow.Validated == false {
80578064
if workflow.Validated == true {
80588065

0 commit comments

Comments
 (0)