Skip to content

Commit

Permalink
ci: fixed release_stable shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
unl0ck committed May 14, 2024
1 parent 7b7e4ec commit a9bca98
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions copy_to_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ target_dir="GridboxConnectorAddon"

# Copy all files from source to target directory, excluding config.yml and build.yml
rsync -av --exclude='config.yaml' --exclude='build.yaml' --exclude='__pycache__' --exclude='.pytest_cache' $src_dir/ $target_dir/
# Read the current version from .bumpversion-dev.toml
current_version=$(jq -r '.version' GridboxConnectorAddon/rootfs/share/cloudSettings.json)

yaml_datei="GridboxConnectorAddon/config.yaml"
current_version=$(yq e '.version' $yaml_datei)
echo "Current version: $current_version"
new_version=$(jq -r '.version' GridboxConnectorAddon/rootfs/share/cloudSettings.json)
echo "New version: $new_version"

# Update the version in the config.yaml file
sed -i '' "s/version: \".*\"/version: \"$current_version\"/" GridboxConnectorAddon/config.yaml

sed -i "s/version: $current_version/version: $new_version/g" $yaml_datei

0 comments on commit a9bca98

Please sign in to comment.