Local reusable workflows don't seem to work #80
Labels
No Label
kind
bug
kind
build
kind/compatible
kind
dependencies
kind
docs
kind
enhancement
kind
feature
kind
help wanted
kind
proposal
kind
refactor
related
act
related
environment
related
exec
related
gitea
related
workflow
reviewed
confirmed
reviewed
duplicate
reviewed
invalid
reviewed
needs feedback
reviewed
wontfix
reviewed
workaround
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/act_runner#80
Loading…
Reference in New Issue
Block a user
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?
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