@@ -19,10 +19,7 @@ import 'step.dart';
1919
2020const _onCompletionStage = '_on_completion' ;
2121
22- Map <String , String > generateGitHubYml (
23- RootConfig rootConfig,
24- Map <String , String > commandsToKeys,
25- ) {
22+ Map <String , String > generateGitHubYml (RootConfig rootConfig) {
2623 final jobs = < HasStageName > [
2724 ...rootConfig.expand ((config) => config.jobs),
2825 ];
@@ -79,7 +76,6 @@ Map<String, String> generateGitHubYml(
7976 final allJobs = _listJobs (
8077 rootConfig,
8178 sortedJobs,
82- commandsToKeys,
8379 rootConfig.monoConfig.mergeStages,
8480 rootConfig.monoConfig.github.onCompletion,
8581 rootConfig.monoConfig.githubConditionalStages,
@@ -175,7 +171,6 @@ ${toYaml({'jobs': jobList})}
175171Iterable <_MapEntryWithStage > _listJobs (
176172 RootConfig rootConfig,
177173 List <HasStageName > jobs,
178- Map <String , String > commandsToKeys,
179174 Set <String > mergeStages,
180175 List <Job >? onCompletionJobs,
181176 Map <String , ConditionalStage > conditionalStages,
@@ -206,6 +201,8 @@ Iterable<_MapEntryWithStage> _listJobs(
206201
207202 final ciJob = job as CIJob ;
208203
204+ final commandsToKeys = extractCommands (rootConfig);
205+
209206 final commands =
210207 ciJob.tasks.map ((task) => commandsToKeys[task.command]! ).toList ();
211208
0 commit comments