Releases: cmodijk/cdk-diff-action
Releases · cmodijk/cdk-diff-action
v2.0.2
v2.0.1
v2.0.0
2.0.0 (2025-08-15)
⚠ BREAKING CHANGES
- several breaking changes with details below
There are several breaking changes in this release.
- Replace
noDiffForStageswithstackSelectionStrategy&
stackSelectorPatterns
This uses the native selection stack filtering capability of
toolkit-liband should be a more robust option for users to filter
stacks.stackSelectorPatternsalso uses a multi-line input instead of
a comma delimited string input. To migrate fromnoDiffForStagesto
stackSelectorPatternsyou can do this:
# from this
- name: Diff
uses: corymhall/cdk-diff-action@v1
with:
noDiffForStages: "Stage1,Stage2"
githubToken: ${{ secrets.GITHUB_TOKEN }}
# to this
- name: Diff
uses: corymhall/cdk-diff-action@v2-beta
with:
stackSelectorPatterns: |
!Stage1/*
!Stage2/*
githubToken: ${{ secrets.GITHUB_TOKEN }}- The default
diffMethodis changed tochange-setto match the cdk
default behavior. This also changes the IAM Role used for diff from the
lookup-roleto thedeploy-role. To keep the old behavior you can
specifydiffMethod: template-only allowDestroyTypesandnoFailOnDestructiveChangesinput types were
changed from a comma delimited string to a multi-line string.
# from this
- name: Diff
uses: corymhall/cdk-diff-action@v1
with:
noFailOnDestructiveChanges: "Stage1,Stage2"
githubToken: ${{ secrets.GITHUB_TOKEN }}
# to this
- name: Diff
uses: corymhall/cdk-diff-action@v2-beta
with:
noFailOnDestructiveChanges: |
Stage1
Stage2
githubToken: ${{ secrets.GITHUB_TOKEN }}- several breaking changes with details below
There are several breaking changes in this release.
- Replace
noDiffForStageswithstackSelectionStrategy&
stackSelectorPatterns
This uses the native selection stack filtering capability of
toolkit-liband should be a more robust option for users to filter
stacks.stackSelectorPatternsalso uses a multi-line input instead of
a comma delimited string input. To migrate fromnoDiffForStagesto
stackSelectorPatternsyou can do this:
- name: Diff
uses: corymhall/cdk-diff-action@v1
with:
noDiffForStages: "Stage1,Stage2"
githubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Diff
uses: corymhall/cdk-diff-action@v2-beta
with:
stackSelectorPatterns: |
!Stage1/*
!Stage2/*
githubToken: ${{ secrets.GITHUB_TOKEN }}- The default
diffMethodis changed tochange-setto match the cdk
default behavior. This also changes the IAM Role used for diff from the
lookup-roleto thedeploy-role. To keep the old behavior you can
specifydiffMethod: template-only allowDestroyTypesandnoFailOnDestructiveChangesinput types were
changed from a comma delimited string to a multi-line string.
- name: Diff
uses: corymhall/cdk-diff-action@v1
with:
noFailOnDestructiveChanges: "Stage1,Stage2"
githubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Diff
uses: corymhall/cdk-diff-action@v2-beta
with:
noFailOnDestructiveChanges: |
Stage1
Stage2
githubToken: ${{ secrets.GITHUB_TOKEN }}Features
- add commit sha to comment (#5) (2a557f2), closes #2
- add timestamp to comment (#135) (d06e4a5), closes #132
- add title and defaultStageDisplayName inputs (#133) (83ac6d4)
- allow specifying a custom
cdk.outdirectory (#43) (8458e7a), closes #40 - Always add default stage (#81) (f2f393c)
- fail action if there are destructive changes (fd6b6fd)
- ignore diff for certain stages (#16) (e24b0ba)
- Implement noDiffForStages input (#108) (85c00ca), closes #93
- initial commit (3762896)
- show stacks with no diff (be6055d)
- summarize stack changes (#6) (3a75a98), closes #4
- use toolkit-lib for diff (#125) (03fd0c8), closes #62 #44 #62
- use toolkit-lib for diff (#125) (#142) (bef9679), closes #62 #44 #62
- v1 release (#8) (024da4e)
Bug Fixes
- action fails when there is missing context (#141) (57ac3a1)
- auth check doesn't account for assumed role (#45) (a7c9da4)
- better handle authentication issues (#42) (c90937f), closes #35
- fix formatting when there are destructive changes (#24) (ab28e1c)
- Fixes the partition arn for chinese regions (#82) (5f75306), closes #79 #71 #79
- forgot to run build (72862f8)
- generating output (c6850c8)
- get stack region from manifest (2b7d74d)
- handle new stacks (cb75af7)
- must have a minimum of 900 durationseconds (69bf899)
- noFailOnDestructiveChanges doesn't work (#19) (ac11485)
- pinning cdk dependencies (#18) (8a635b4)
- process longer comments (#137) (9621033)
- sometimes the stage comment is too long (#33) (e154417), closes #32
- template is already JSON (5e6bde2)
- upgrade toolkit-lib and use stack displayName (#134) (4603015)
- Use GovCloud partition in ARN for GovCloud regions (#71) (2d044f6), cl...