-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
60 additions
and
32 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,37 @@ | ||
#!/bin/bash | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
|
||
set -ex | ||
|
||
PROJECT_ROOT=$(cd "$(dirname "${BASH_SOURCE:-$0}")/.." && pwd) | ||
CDKTF_VERSION=$1 | ||
|
||
if [ -z "$CDKTF_VERSION" ]; then | ||
echo "Usage: $0 <cdktf-version>" | ||
exit 1 | ||
fi | ||
echo "asd" | ||
|
||
echo "Updating to cdktf version $CDKTF_VERSION" | ||
git checkout -b "cdktf-$CDKTF_VERSION" | ||
cd $PROJECT_ROOT | ||
|
||
yarn | ||
|
||
sed -i "s/const cdktfVersion = \".*\";/const cdktfVersion = \">=$CDKTF_VERSION\";/" "$PROJECT_ROOT/.projenrc.ts" | ||
|
||
npx projen | ||
|
||
git add . | ||
git commit -m "feat: update to cdktf $CDKTF_VERSION" | ||
git push origin "cdktf-$CDKTF_VERSION" | ||
|
||
BODY=$(cat <<EOF | ||
- [ ] Update peer dependencies to cdktf $CDKTF_VERSION | ||
EOF | ||
) | ||
|
||
gh label create -f "cdktf-update-$CDKTF_VERSION" | ||
gh pr create --fill --base main --head "cdktf-$CDKTF_VERSION" --title "feat: update to cdktf $CDKTF_VERSION" --body "$BODY" --label "cdktf-update-$CDKTF_VERSION" |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.