-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): bump python-semantic-release to ^8.0.0
- Loading branch information
Showing
4 changed files
with
199 additions
and
239 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
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,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
function cd_to_root_directory () { | ||
cd `dirname ${0}`/../../ | ||
} | ||
|
||
cd_to_root_directory | ||
|
||
source src/bin/shared.sh | ||
|
||
VERSION=$(cat pyproject.toml | grep "^version *= *\"[0-9]\.[0-9]\.[0-9]\"$" | sed -r 's/^version *= *\"(.*)\"$/\1/') | ||
NEXT_VERSION=$(p run semantic-release --noop version --print) | ||
|
||
echo "Replacing all occurences of ${VERSION} with ${NEXT_VERSION}" | ||
|
||
sed -i"" "s/edeckers\/huemon:${VERSION}/edeckers\/huemon:${NEXT_VERSION}/g" assets/release/release-docker.sh | ||
sed -i"" "s/edeckers\/huemon:${VERSION}/edeckers\/huemon:${NEXT_VERSION}/g" docker-compose.yml | ||
sed -i"" "s/ARG HUEMON_VERSION=${VERSION}/ARG HUEMON_VERSION=${NEXT_VERSION}/g" Dockerfile | ||
|
||
echo "Replaced all occurrences of ${VERSION} with ${NEXT_VERSION}" |
Oops, something went wrong.