Closed aegershman closed 2 years ago
Note, this appears to be because removeUnused()
is called over the whole file. Which means "unused" keys, such as workflow_dispatch: {}
will be removed, even though they are not part of the original scope of what was intended to be removed.
Update:
The {}
shifts because the yaml flow style is not supported yet.
The mapping is removed by removeUnused()
. The removeUnused
is not constrained to a parent yaml, and applies to each entry.
Problem
Configured
DeleteKey
with$.jobs.build.strategy.fail-fast
, and it appears to have removedworkflow_dispatch
. But it did removefail-fast
as expected.Expected behavior
Not having
workflow_dispatch
removed. Also note how it shifted{}
next tomain
, which is interesting.Example diff
Recipes in example diff:
References:
yG2Zw