Skip to content

Commit

Permalink
Merge pull request #117 from internalsystemerror/upgrade-to-node-18
Browse files Browse the repository at this point in the history
Update required node version to match the one installed
  • Loading branch information
Ocramius committed Aug 7, 2022
2 parents 70d4811 + 7b4881e commit 3570ac9
Show file tree
Hide file tree
Showing 6 changed files with 636 additions and 491 deletions.
14 changes: 7 additions & 7 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ function checkout {

if [[ "$REF" == "$LOCAL_BRANCH" ]];then
echo "Checking out ref ${REF}"
git checkout $REF
git checkout "$REF"
else
echo "Checking out branch ${BASE_BRANCH}"
git checkout ${BASE_BRANCH}
git checkout "${BASE_BRANCH}"
echo "Fetching target ref ${REF}"
git fetch origin ${REF}:${LOCAL_BRANCH_NAME}
git fetch origin "${REF}":"${LOCAL_BRANCH_NAME}"
echo "Checking out target ref to ${LOCAL_BRANCH_NAME}"
git checkout ${LOCAL_BRANCH_NAME}
git checkout "${LOCAL_BRANCH_NAME}"
fi
}

Expand All @@ -72,12 +72,12 @@ DIFF=

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

if [[ "$DIFF" != "" ]];then
echo "Found changes in the following files:"
echo ${DIFF}
echo "${DIFF}"
fi

/action/main.js ${DIFF}
/action/main.js "${DIFF}"
Loading

0 comments on commit 3570ac9

Please sign in to comment.