cdk-diff-action
Version updated for https://github.com/corymhall/cdk-diff-action to version v2.0.0.
- This action is used across all versions by 4 repositories.
Go to the GitHub Marketplace to find the latest changes.
Release notes
2.0.0 (2025-06-20)
⚠ BREAKING CHANGES
several breaking changes with details below
There are several breaking changes in this release.
- Replace
noDiffForStages
withstackSelectionStrategy
&stackSelectorPatterns
This uses the native selection stack filtering capability oftoolkit-lib
and should be a more robust option for users to filter stacks.stackSelectorPatterns
also uses a multi-line input instead of a comma delimited string input. To migrate fromnoDiffForStages
tostackSelectorPatterns
you 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
with:
stackSelectorPatterns: |
!Stage1/*
!Stage2/*
githubToken: ${{ secrets.GITHUB_TOKEN }}
- The default
diffMethod
is changed tochange-set
to match the cdk default behavior. This also changes the IAM Role used for diff from thelookup-role
to thedeploy-role
. To keep the old behavior you can specifydiffMethod: template-only
allowDestroyTypes
andnoFailOnDestructiveChanges
input 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
with:
noFailOnDestructiveChanges: |
Stage1
Stage2
githubToken: ${{ secrets.GITHUB_TOKEN }}
Features
- add timestamp to comment (#135) (d06e4a5), closes #132
- add title and defaultStageDisplayName inputs (#133) (83ac6d4)
- use toolkit-lib for diff (#125) (03fd0c8), closes #62 #44 #62
- use toolkit-lib for diff (#125) (#142) (bef9679), closes #62 #44 #62