dev/ci: recurse over nested pipelines to generate step keys
Created by: bobheadxi
Closes https://github.com/sourcegraph/sourcegraph/issues/33227
Test plan
pipeline generates and runs
go run ./enterprise/dev/ci/gen-pipeline.go -yaml | grep key
key: Lintersandstaticanalysis
key: lipstickPrettier
key: cache-node_modules-{{ checksum 'yarn.lock' }}
restore_keys:
key: clipboardMisclinters
key: cache-node_modules-{{ checksum 'yarn.lock' }}
restore_keys:
key: Gochecks
key: goTestall
key: goTestenterpriseinternalcodeintelstoresdbstore
key: goTestenterpriseinternalcodeintelstoreslsifstore
key: goTestenterpriseinternalinsights
key: goTestinternaldatabase
key: goTestinternalrepos
key: goTestenterpriseinternalbatches
key: goTestcmdfrontend
key: goTestenterpriseinternaldatabase
key: goTestenterprisecmdfrontendinternalbatchesresolvers
key: goBuild
key: arrowheadingupUploadbuildtrace