mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1673] Local reusable workflows not supported #826
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#826
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 @sylwit on GitHub (Mar 9, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1673
Bug report info
Command used with act
Describe issue
If we use a local reusable workflow like
This won't work probably because of this regexp https://github.com/nektos/act/blob/master/pkg/runner/reusable_workflow.go#L117
The documenation link above mentions 3 different ways to call a reusable workflow
jobs:
call-workflow-1-in-local-repo:
uses: octo-org/this-repo/.github/workflows/workflow-1.yml@172239021f7ba04fe7327647b213799853a9eb89
call-workflow-2-in-local-repo:
uses: ./.github/workflows/workflow-2.yml
call-workflow-in-another-repo:
uses: octo-org/another-repo/.github/workflows/workflow.yml@v1
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
If I update the workflow with (note the additional ./), this will make the container start, so it fix the parsing.
- uses: ././.github/workflows/test.yml
@KnisterPeter commented on GitHub (Mar 9, 2023):
You probably missed to clone your repo
@sylwit commented on GitHub (Mar 9, 2023):
Sorry I removed too many lines when I pasted my workflow. Updated now with checkout.
act is evaluating steps before starting the workflow so checkout won't help here.
More debugging in the additional info which proves that the regexp seems to be the issue
@KnisterPeter commented on GitHub (Mar 9, 2023):
But we are using local reusable workflows.
Please paste all logs and all workflows and all data.
Otherwise debugging will be hard.
@sylwit commented on GitHub (Mar 9, 2023):
Here is a repo to reproduce it https://github.com/sylwit/act_debug with the logs
Where are you using local reusable workflows ?
@sylwit commented on GitHub (Mar 9, 2023):
Found the issue while rerunning your tests. There is no runs-on nor steps in a reusable workflow :(
Thanks for the quick reply @KnisterPeter