[GH-ISSUE #2662] --local-repository wildcard ref support #1205

Open
opened 2026-03-01 21:49:40 +03:00 by kerem · 2 comments
Owner

Originally created by @Makeshift on GitHub (Feb 11, 2025).
Original GitHub issue: https://github.com/nektos/act/issues/2662

Act version

0.2.74

Feature description

As @ChristopherHX mentioned in #2390, allowing --local-repository to globally override any refs would be awesome.

Similar to in that issue, I have a single repository full of many different actions, eg

ebx/actions/action-bash-debug
ebx/actions/action-upload-s3-artifact
ebx/actions/action-app-deployer

etc.

Having to look up the current version in use by a workflow and having to write a custom ebx/actions@v1.2.3=/path/to/ebx/actions arg is a little inconvenient.

It's still an incredibly useful feature though, so I definitely appreciate it!

Originally created by @Makeshift on GitHub (Feb 11, 2025). Original GitHub issue: https://github.com/nektos/act/issues/2662 ### Act version 0.2.74 ### Feature description As @ChristopherHX mentioned in #2390, allowing `--local-repository` to globally override any refs would be awesome. Similar to in that issue, I have a single repository full of many different actions, eg ``` ebx/actions/action-bash-debug ebx/actions/action-upload-s3-artifact ebx/actions/action-app-deployer ``` etc. Having to look up the current version in use by a workflow and having to write a custom `ebx/actions@v1.2.3=/path/to/ebx/actions` arg is a little inconvenient. It's still an incredibly useful feature though, so I definitely appreciate it!
Author
Owner

@ChristopherHX commented on GitHub (Feb 11, 2025):

If you want to learn some golang and have this feature it's probably pretty simple to change this matching code here and open a PR
github.com/nektos/act@3f741df6bc/pkg/runner/local_repository_cache.go (L26-L39)

l.LocalRepositories

contains your cli arguments split by =

if dest, ok := l.LocalRepositories[fmt.Sprintf("%s@%s", url, ref)]; ok { is used to match currently duplicate such an if + body make this happen

I'm behind my plans here and not working on any feature requests right now

<!-- gh-comment-id:2651943436 --> @ChristopherHX commented on GitHub (Feb 11, 2025): If you want to learn some golang and have this feature it's probably pretty simple to change this matching code here and open a PR https://github.com/nektos/act/blob/3f741df6bcf35bafe16247e6dcb3072c5a481977/pkg/runner/local_repository_cache.go#L26-L39 > l.LocalRepositories contains your cli arguments split by `=` `if dest, ok := l.LocalRepositories[fmt.Sprintf("%s@%s", url, ref)]; ok { ` is used to match currently duplicate such an if + body make this happen _I'm behind my plans here and not working on any feature requests right now_
Author
Owner

@Makeshift commented on GitHub (Feb 11, 2025):

Learning some Go sounds like a pretty fun weekend project, actualy. I'll see if I can give it a go, thank you for the pointers!

<!-- gh-comment-id:2652070164 --> @Makeshift commented on GitHub (Feb 11, 2025): Learning some Go sounds like a pretty fun weekend project, actualy. I'll see if I can give it a go, thank you for the pointers!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1205
No description provided.