Skip to content

Commit 8dbc854

Browse files
committed
chore: Improved the "abort" script.
1 parent 51f1112 commit 8dbc854

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tools/release-abort.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
# under the License.
2020
# ----------------------------------------------------------------------------
2121

22-
DIRECTORY=$(pwd)
22+
DIRECTORY="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
23+
2324
PRE_RELEASE_VERSION=0.13.1-SNAPSHOT
2425

2526
# Set the local development version back to the initial one.
26-
docker compose run releaser bash /ws/mvnw -e -P with-c,with-dotnet,with-go,with-java,with-python,update-generated-code -Dmaven.repo.local=/ws/out/.repository versions:set -DnewVersion="$PRE_RELEASE_VERSION"
27+
docker compose -f "$DIRECTORY/tools/docker-compose.yaml" run releaser bash /ws/mvnw -e -P with-c,with-dotnet,with-go,with-java,with-python,update-generated-code -Dmaven.repo.local=/ws/out/.repository versions:set -DnewVersion="$PRE_RELEASE_VERSION"
2728

2829
# Delete left-over files from the last attempt.
2930
find .. -type f -name 'release.properties' -delete

0 commit comments

Comments
 (0)