feat(cmd/joj3): set env before stages
All checks were successful
submodules sync / sync (push) Successful in 38s
build / build (push) Successful in 1m11s
build / trigger-build-image (push) Successful in 6s

This commit is contained in:
张泊明518370910136 2025-02-01 20:31:56 -05:00
parent 4e84031e84
commit 0f40da5efa
GPG Key ID: D47306D7062CDA9D

View File

@ -53,7 +53,8 @@ func mainImpl() (err error) {
} }
env.Attr.CommitMsg = commitMsg env.Attr.CommitMsg = commitMsg
confPath, confStat, conventionalCommit, err := internalConf.GetConfPath( confPath, confStat, conventionalCommit, err := internalConf.GetConfPath(
confFileRoot, confFileName, fallbackConfFileName, commitMsg, tag) confFileRoot, confFileName, fallbackConfFileName, commitMsg, tag,
)
if err != nil { if err != nil {
slog.Error("get conf path", "error", err) slog.Error("get conf path", "error", err)
return err return err
@ -88,6 +89,7 @@ func mainImpl() (err error) {
// run stages // run stages
groups := internalConf.MatchGroups(conf, conventionalCommit) groups := internalConf.MatchGroups(conf, conventionalCommit)
env.Attr.Groups = strings.Join(groups, ",") env.Attr.Groups = strings.Join(groups, ",")
env.Set()
_, forceQuitStageName, err := stage.Run( _, forceQuitStageName, err := stage.Run(
conf, conf,
groups, groups,