testing reusable workflows locally - replace remote repo with local path? #1924
Unanswered
mverkerk-godaddy
asked this question in
Q&A
Replies: 1 comment 6 replies
-
No such feature exists in act, no doubt this is useful.
I have already implemented this in my actions/runner fork, but act may gain it later |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All - I'm having an issue while testing reusable workflows locally. Here's an example:
When I run this job, act will clone
https://github.com/org/repo
to local cache and throw an error:Error: stat /home/me/.cache/act/org-repo@main/.github/workflows/reusable.yml: no such file or directory
This is the expected behavior but instead if this, I want act to use the local version of the file because that is what I am testing or, in this case, the file has not been released yet ...
Of course, I could change to
./.github/workflows/reusable.yml
while testing but that can easily lead to mistakes (i.e. forgot to change back the path) or I may have many of these and would have to change all the paths back & forthWould be great if there was a parameter like
--remote-repo <org>/<repo>
which act would interpret as./
Is there a way to do this already?
Beta Was this translation helpful? Give feedback.
All reactions