-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use unique name for reusable workflows #2015
Conversation
Here is an example of the change that my pull request will make. When running With act v0.2.50. Note that all four matrix jobs have the same name:
With this pull request. Note the unique digit added to each iteration of
|
Codecov Report
@@ Coverage Diff @@
## master #2015 +/- ##
==========================================
+ Coverage 61.22% 61.41% +0.19%
==========================================
Files 46 53 +7
Lines 7141 8779 +1638
==========================================
+ Hits 4372 5392 +1020
- Misses 2462 2957 +495
- Partials 307 430 +123
... and 2 files with indirect coverage changes 📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's still not unique (e.g. matrix?), but should have less conflicts
Co-authored-by: ChristopherHX <[email protected]>
Use unique name for reusable workflows.
Fixes #2003 - act does not create separate containers for matrix builds with reusable workflows.