mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #2662] --local-repository wildcard ref support #1205
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1205
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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-repositoryto globally override any refs would be awesome.Similar to in that issue, I have a single repository full of many different actions, eg
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/actionsarg is a little inconvenient.It's still an incredibly useful feature though, so I definitely appreciate it!
@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)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 happenI'm behind my plans here and not working on any feature requests right now
@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!