Skip to content

Commit 971dd67

Browse files
committed
Review
1 parent 76cfcb9 commit 971dd67

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ There are two stages, testing and deployment.
8989

9090
1. **Update the -tools version**: Once the tests pass, update the `setup.py` version and create a tag in the -tools repository at the same SHA you identified earlier.
9191

92-
- Determine the next [stamp](https://blog.aspect.build/versioning-releases-from-a-monorepo) (which is valid [semver](https://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiers)) number as appropriate for the changes in this release. e.g. `2024.40.2`.
93-
- Run `stamp.sh` to automatically perform this action. Use `--release` to additionally create a tag and push to main.
92+
- Run `stamp.sh` to determine the next version and update `setup.py`. Use `--release` to additionally create a tag and push to main.
93+
- Determine the next [stamp](https://blog.aspect.build/versioning-releases-from-a-monorepo) (which is valid [semver](https://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiers)) number as appropriate for the changes in this release. e.g. `2024.40.2`.
9494

9595
1. **Update your testing PR branch**: Remove SHA and add tag to [validate-doc-metadata.yml](https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/.github/workflows/validate-doc-metadata.yml)
9696
- NOTE: Remove the SHA from [.doc_gen/validation.yaml](https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/.doc_gen/validation.yaml)

stamp.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ set -e # Exit on errors
77
BRANCH=$(git rev-parse --abbrev-rev HEAD)
88
if [ "$BRANCH" != "main" ] ; then
99
echo "Not on main, exiting!"
10-
# exit 1
10+
exit 1
1111
fi
1212

1313
# And check that the main branch is clean
1414
STATUS=$(git status --porcelain)
1515
if [ -n "${STATUS}" ] ; then
1616
echo "Repository is not clean, exiting!"
17-
# exit 1
17+
exit 1
1818
fi
1919

2020
# And check that the REMOTE points to the -tools repo.
2121
REMOTE="${REMOTE:origin}"
22-
if [ "$(git remote get-url $REMOTE 2>/dev/null)" != "[email protected]:awsdocs/aws-doc-sdk-examples-tools.git" ] ; then
23-
echo "REMOTE=${REMOTE} is not set to [email protected]:awsdocs/aws-doc-sdk-examples-tools.git, please adjust accordingly and rerun."
22+
if [[ "$(git remote get-url $REMOTE 2>/dev/null)" != *"awsdocs/aws-doc-sdk-examples-tools.git"* ]] ; then
23+
echo "REMOTE=${REMOTE} is not set to awsdocs/aws-doc-sdk-examples-tools.git, please adjust accordingly and rerun."
2424
exit 1
2525
fi
2626

@@ -50,7 +50,7 @@ CURRENT=$(grep version= setup.py | awk -F\" '{print $2}')
5050
NEXT=$(date +%Y.%W.0)
5151
VERSION=$(compare_versions "$CURRENT" "$NEXT")
5252
echo "Releasing $VERSION..."
53-
sed -i '' "/version=/ s/$CURRENT/$VERSION/" setup.py
53+
sed "/version=/ s/$CURRENT/$VERSION/" setup.py > setup.py.out ; mv setup.py.out setup.py
5454
git --no-pager diff
5555
git add setup.py
5656
git commit --message "Release ${VERSION}"

0 commit comments

Comments
 (0)