Skip to content

Commit 6d45508

Browse files
fix: disable workflow recurse again (#31)
* This is a non existing feature for GitHub Actions
1 parent 3bd3400 commit 6d45508

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/input.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type Input struct {
3535
containerArchitecture string
3636
containerDaemonSocket string
3737
containerOptions string
38-
noWorkflowRecurse bool
38+
workflowRecurse bool
3939
useGitIgnore bool
4040
githubInstance string
4141
containerCapAdd []string

cmd/root.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func Execute(ctx context.Context, version string) {
8585
rootCmd.Flags().StringArrayVarP(&input.matrix, "matrix", "", []string{}, "specify which matrix configuration to include (e.g. --matrix java:13")
8686
rootCmd.PersistentFlags().StringVarP(&input.actor, "actor", "a", "nektos/act", "user that triggered the event")
8787
rootCmd.PersistentFlags().StringVarP(&input.workflowsPath, "workflows", "W", "./.github/workflows/", "path to workflow file(s)")
88-
rootCmd.PersistentFlags().BoolVarP(&input.noWorkflowRecurse, "no-recurse", "", false, "Flag to disable running workflows from subdirectories of specified path in '--workflows'/'-W' flag")
88+
rootCmd.PersistentFlags().BoolVarP(&input.workflowRecurse, "recurse", "", false, "Flag to enable running workflows from subdirectories of specified path in '--workflows'/'-W' flag, this feature doesn't exist on GitHub Actions as of 2024/11")
8989
rootCmd.PersistentFlags().StringVarP(&input.workdir, "directory", "C", ".", "working directory")
9090
rootCmd.PersistentFlags().BoolP("verbose", "v", false, "verbose output")
9191
rootCmd.PersistentFlags().BoolVar(&input.jsonLogger, "json", false, "Output logs in json format")
@@ -429,7 +429,7 @@ func newRunCommand(ctx context.Context, input *Input) func(*cobra.Command, []str
429429
matrixes := parseMatrix(input.matrix)
430430
log.Debugf("Evaluated matrix inclusions: %v", matrixes)
431431

432-
planner, err := model.NewWorkflowPlanner(input.WorkflowsPath(), input.noWorkflowRecurse)
432+
planner, err := model.NewWorkflowPlanner(input.WorkflowsPath(), !input.workflowRecurse)
433433
if err != nil {
434434
return err
435435
}

0 commit comments

Comments
 (0)