Skip to content

Commit

Permalink
Fix version handling in action.yml to prepend '-' when version is spe…
Browse files Browse the repository at this point in the history
…cified
  • Loading branch information
nmaguiar authored Jan 9, 2025
1 parent 1077475 commit 5066208
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ runs:
VERSION=${{ inputs.version }}
VERSION=$(echo "$VERSION" | xargs)
if [ -z "$VERSION" ]; then
if [ -n "$VERSION" ]; then
VERSION="-$VERSION"
else
VERSION=""
fi
curl https://openaf.io/$DIST/openaf$VERSION.jar.repacked -o openaf.jar
java -jar openaf.jar --install
cd $CDIR
Expand Down

0 comments on commit 5066208

Please sign in to comment.