1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-11 17:50:58 +00:00

Use unique name for reusable workflow (#2015)

Co-authored-by: ChristopherHX <christopher.homberger@web.de>
This commit is contained in:
Andreas Taylor 2023-11-12 11:21:41 -06:00 committed by GitHub
parent 0fe2aa1cd9
commit 078c67a6ee

View file

@ -64,7 +64,7 @@ func (rc *RunContext) String() string {
if rc.caller != nil {
// prefix the reusable workflow with the caller job
// this is required to create unique container names
name = fmt.Sprintf("%s/%s", rc.caller.runContext.Run.JobID, name)
name = fmt.Sprintf("%s/%s", rc.caller.runContext.Name, name)
}
return name
}