-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cfnspec): prepare cfnspec update for autobump (#6557)
* chore(cfnspec): prepare cfnspec update for autobump `update-cfnspec.sh` is a single script that does the whole bump process from a fresh repo. `cfn.version` holds the current version of the CloudFormation version which changes with the bump process. This is required by delivlib's bump API here - https://github.com/awslabs/aws-delivlib/blob/0342978b78c5dd2c7bff2279d3b9a43c9e1f359c/lib/bump/bump.ts#L23-L27 * rename to bump * tweaked per PR feedback Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
b546295
commit 9f8de62
Showing
4 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
# AWS CDK CloudFormation Tools | ||
|
||
To update the CloudFormation spec to the latest version, run: | ||
To update the CloudFormation spec, you can run `bump-cfnspec.sh` from a clean repo, as so - | ||
|
||
npm run update | ||
``` | ||
./scripts/bump-cfnspec.sh | ||
``` | ||
|
||
If you wish to only update the CFN spec, make sure to install all dependencies and build the `cfnspec` module, | ||
and then you can just run: | ||
|
||
``` | ||
yarn update | ||
``` | ||
|
||
Any JSON hashes are alpha-sorted to make sure that only actual changes appear in | ||
diffs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
11.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
if [ ! -f "lerna.json" ]; then | ||
echo "This script should be run from the root of the CDK repository" | ||
exit 1 | ||
fi | ||
|
||
./install.sh | ||
cd packages/@aws-cdk/cfnspec | ||
../../../scripts/buildup | ||
yarn update | ||
git commit -a -m "feat: cloudformation spec v$(cat cfn.version)" || true # don't fail if there are no updates |