diff --git a/.github/workflows/apply-release.yml b/.github/workflows/apply-release.yml index 74590e20a4..337f55d099 100644 --- a/.github/workflows/apply-release.yml +++ b/.github/workflows/apply-release.yml @@ -27,7 +27,7 @@ jobs: - name: Get package version id: version run: | - version=$(pip index versions port-ocean | grep LATEST | cut -d':' -f2 | sed 's/ //g') + version=$(pip index versions port-ocean | grep 'port-ocean' | cut -d' ' -f2 | tr -d '()') pr_name="[Integration] Apply Ocean version $version to all integrations" branch_name="apply-ocean-$version-to-all-integrations" echo "Branch Name: $branch_name" diff --git a/scripts/bump-all.sh b/scripts/bump-all.sh index 5fff444b51..12a8ee8b12 100755 --- a/scripts/bump-all.sh +++ b/scripts/bump-all.sh @@ -3,7 +3,7 @@ SCRIPT_BASE="$(cd -P "$(dirname "$0")" && pwd)" ROOT_DIR="$(cd -P "${SCRIPT_BASE}/../" && pwd)" CURRENT_DIR=$(pwd) -VERSION="^${1:-$(pip index versions port-ocean | grep LATEST | cut -d':' -f2 | sed 's/ //g')}" +VERSION="^${1:-$(pip index versions port-ocean | grep 'port-ocean' | cut -d' ' -f2 | tr -d '()')}" echo "Going to bump ocean core to version ${VERSION} for all integrations"