Skip to content

Commit ebc0d21

Browse files
committed
Set JReleaser dry run through an env variable
Signed-off-by: marko-bekhta <[email protected]>
1 parent 666c52c commit ebc0d21

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

deploy.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#!/usr/bin/env -S bash -e
22

3-
EXTRA_JRELEASER_ADDITIONAL_OPTIONS=''
4-
53
while getopts 'd:' opt; do
64
case "$opt" in
75
d)
86
# Dry run
97
echo "DRY RUN: will not push/deploy/publish anything."
10-
EXTRA_JRELEASER_ADDITIONAL_OPTIONS='--dry-run'
8+
export JRELEASER_DRY_RUN=true
119
;;
1210
\?)
1311
usage
@@ -74,7 +72,7 @@ else
7472
# Let's check we've got the right version
7573
java -jar jreleaser-cli.jar --version
7674
# Execute a JReleaser command such as 'full-release'
77-
java -jar jreleaser-cli.jar -Djreleaser.project.version="$RELEASE_VERSION" $EXTRA_JRELEASER_ADDITIONAL_OPTIONS
75+
java -jar jreleaser-cli.jar -Djreleaser.project.version="$RELEASE_VERSION"
7876
fi
7977
fi
8078

0 commit comments

Comments
 (0)