Skip to content

Commit

Permalink
chore: changes
Browse files Browse the repository at this point in the history
  • Loading branch information
welpie21 committed Oct 15, 2024
1 parent e826648 commit 0f23af8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ runs:
shell: bash
run: |
# Download the SurrealDB binary when the version is not latest
if [ "$SURREALDB_VERSION" == "latest" ]; then
if [ "$SURREALDB_VERSION" = "latest" ]; then
curl --proto '=https' --tlsv1.2 -sSf https://install.surrealdb.com | sh -s
else
curl --proto '=https' --tlsv1.2 -sSf https://install.surrealdb.com | sh -s -- --version ${{ inputs.surrealdb_version }}
Expand Down Expand Up @@ -75,14 +75,14 @@ runs:
SURREALDB_PASSWORD="-p $SURREALDB_PASSWORD"
fi
if [[ "$SURREALDB_VERSION" == v1.* ]]; then
if [[ "$SURREALDB_VERSION" = v1.* ]]; then
if [ "$SURREALDB_AUTH" == "true" ]; then
SURREALDB_AUTH="--auth"
else
SURREALDB_AUTH=""
fi
else
if [ "$SURREALDB_AUTH" == "true" ]; then
if [ "$SURREALDB_AUTH" = "true" ]; then
SURREALDB_AUTH=""
else
SURREALDB_AUTH="--unauthenticated"
Expand All @@ -95,7 +95,7 @@ runs:
SURREALDB_PORT="--bind 0.0.0.0:$SURREALDB_PORT"
fi
if [ "$SURREALDB_STRICT" == "true" ]; then
if [ "$SURREALDB_STRICT" = "true" ]; then
SURREALDB_STRICT="--strict"
fi
Expand Down

0 comments on commit 0f23af8

Please sign in to comment.