From 99d7ac2a9b174047502cd1ebfd6cac3fbec99741 Mon Sep 17 00:00:00 2001 From: Ermal Kaleci Date: Thu, 28 Jul 2022 16:16:30 +0200 Subject: [PATCH] walk submodule path instead of dir name (#1282) * walk submodule path instead of dir name * use file path instead of relative path Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- act/container/file_collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/act/container/file_collector.go b/act/container/file_collector.go index 8c8c62bd..e97cadae 100644 --- a/act/container/file_collector.go +++ b/act/container/file_collector.go @@ -143,7 +143,7 @@ func (fc *fileCollector) collectFiles(ctx context.Context, submodulePath []strin } } if err == nil && entry.Mode == filemode.Submodule { - err = fc.Fs.Walk(fi.Name(), fc.collectFiles(ctx, split)) + err = fc.Fs.Walk(file, fc.collectFiles(ctx, split)) if err != nil { return err }