Local reusable workflows don't seem to work #80
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
The following workflow fails on my personal instance:
.github/workflows/main.yaml
.github/workflows/build.yaml
The logs for the
build
job:I'm guessing the repository isn't cloned by default so it can't fetch the workflow from the filesystem. I also tried changing the outer workflow to this:
To force a clone, but the reusable job doesn't seem to respect the dependency.
It seems like one option might be to treat all reusable actions as remote, as
act
seems to clone repos automatically in that case: https://gitea.com/gitea/act/src/branch/main/pkg/runner/reusable_workflow.go#L33But looking further in that file it looks like it will at least need some tweaking as it only validates / downloads reusable actions that are on github: https://gitea.com/gitea/act/src/branch/main/pkg/runner/reusable_workflow.go#L127
Now
act
clone repos only if the reusable workflow is remote. We need to improve the logic to support cloning repos for local reusable workflows.https://gitea.com/gitea/act/src/branch/main/pkg/runner/reusable_workflow.go#L18