summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorAndreas Taylor <Andy4495@users.noreply.github.com>2023-11-12 18:21:41 +0100
committerGitHub <noreply@github.com>2023-11-12 18:21:41 +0100
commit1c16fd1967d68c76aeab6b88d7ac9a6bde1f4123 (patch)
treeca1fdf3943377324e7f07a644d44accc3522261c /pkg
parentbuild(deps): bump github.com/spf13/cobra from 1.7.0 to 1.8.0 (#2079) (diff)
downloadforgejo-act-1c16fd1967d68c76aeab6b88d7ac9a6bde1f4123.tar.xz
forgejo-act-1c16fd1967d68c76aeab6b88d7ac9a6bde1f4123.zip
Use unique name for reusable workflow (#2015)
Co-authored-by: ChristopherHX <christopher.homberger@web.de>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/runner/run_context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go
index 70d2f8f..a69abc6 100644
--- a/pkg/runner/run_context.go
+++ b/pkg/runner/run_context.go
@@ -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
}