Skip to content

Commit

Permalink
Fix checks on input variables
Browse files Browse the repository at this point in the history
  • Loading branch information
drdanz committed Sep 29, 2020
1 parent 67fbc09 commit b092b2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ echo " - user_email = $INPUT_USER_EMAIL"
echo " - push_token = $INPUT_PUSH_TOKEN = ${!INPUT_PUSH_TOKEN}"
echo

if ! $INPUT_ALLOW_FORKS; then
if [[ $INPUT_ALLOW_FORKS != "true" ]]; then
URI=https://api.github.com
API_HEADER="Accept: application/vnd.github.v3+json"
pr_resp=$(curl -X GET -s -H "${API_HEADER}" "${URI}/repos/$GITHUB_REPOSITORY")
Expand All @@ -31,9 +31,9 @@ if [[ -z "${!INPUT_PUSH_TOKEN}" ]]; then
fi

FF_MODE="--no-ff"
if $INPUT_ALLOW_FF; then
if [[ "$INPUT_ALLOW_FF" == "true" ]]; then
FF_MODE="--ff"
if $INPUT_FF_ONLY; then
if [[ "$INPUT_FF_ONLY" == "true" ]]; then
FF_MODE="--ff-only"
fi
fi
Expand Down Expand Up @@ -66,7 +66,7 @@ set -o xtrace
git merge $FF_MODE --no-edit $INPUT_STABLE_BRANCH

# Pull lfs if enabled
if $INPUT_GIT_LFS; then
if [[ $INPUT_GIT_LFS == "true" ]]; then
git lfs pull
fi

Expand Down

0 comments on commit b092b2a

Please sign in to comment.