Skip to content

Commit 3570ac9

Browse files
authored
Merge pull request #117 from internalsystemerror/upgrade-to-node-18
Update required node version to match the one installed
2 parents 70d4811 + 7b4881e commit 3570ac9

File tree

6 files changed

+636
-491
lines changed

6 files changed

+636
-491
lines changed

entrypoint.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ function checkout {
5454

5555
if [[ "$REF" == "$LOCAL_BRANCH" ]];then
5656
echo "Checking out ref ${REF}"
57-
git checkout $REF
57+
git checkout "$REF"
5858
else
5959
echo "Checking out branch ${BASE_BRANCH}"
60-
git checkout ${BASE_BRANCH}
60+
git checkout "${BASE_BRANCH}"
6161
echo "Fetching target ref ${REF}"
62-
git fetch origin ${REF}:${LOCAL_BRANCH_NAME}
62+
git fetch origin "${REF}":"${LOCAL_BRANCH_NAME}"
6363
echo "Checking out target ref to ${LOCAL_BRANCH_NAME}"
64-
git checkout ${LOCAL_BRANCH_NAME}
64+
git checkout "${LOCAL_BRANCH_NAME}"
6565
fi
6666
}
6767

@@ -72,12 +72,12 @@ DIFF=
7272

7373
if [[ "$GITHUB_EVENT_NAME" == "pull_request" ]];then
7474
echo "Preparing file diff"
75-
DIFF=$(git diff --name-only $GITHUB_BASE_REF...HEAD)
75+
DIFF=$(git diff --name-only "$GITHUB_BASE_REF"...HEAD)
7676
fi
7777

7878
if [[ "$DIFF" != "" ]];then
7979
echo "Found changes in the following files:"
80-
echo ${DIFF}
80+
echo "${DIFF}"
8181
fi
8282

83-
/action/main.js ${DIFF}
83+
/action/main.js "${DIFF}"

0 commit comments

Comments
 (0)