[pipelines] wrong position for ManualApproval action in cdkStage addApplication() #11510
Labels
@aws-cdk/pipelines
CDK Pipelines library
bug
This issue is a bug.
in-progress
This issue is being actively worked on.
needs-triage
This issue or PR still needs to be triaged.
This is a quick bugfix for #11376. The desired actions order described in #11333 is not achieved when used with
manualApprovals: true
.Desired order: Prepare ChangeSet -> Manual Approval -> ExtraAction -> Execute ChangeSet
However, the
runOrder
of the Manual Approval is 3 instead of 2, not being placed right after the Prepare action.This is happening because the
RunOrder
of the Manual Approval action is decided by theexecuteRunOrder
, which is already increased by the number of extra actions needed in that stage, instead of being decided by therunOrder
of the Prepare ChangeSet action. (https://github.com/aws/aws-cdk/blob/master/packages/@aws-cdk/pipelines/lib/stage.ts#L99)Reproduction Steps
What did you expect to happen?
Having a stage with the following:
What actually happened?
Environment
Other
I will implement the bugfix since the original PR was missing this functionality.
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: