feat(cmd/joj3): set env before stages
This commit is contained in:
parent
4e84031e84
commit
0f40da5efa
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user