File tree Expand file tree Collapse file tree 6 files changed +636
-491
lines changed Expand file tree Collapse file tree 6 files changed +636
-491
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,14 @@ function checkout {
54
54
55
55
if [[ " $REF " == " $LOCAL_BRANCH " ]]; then
56
56
echo " Checking out ref ${REF} "
57
- git checkout $REF
57
+ git checkout " $REF "
58
58
else
59
59
echo " Checking out branch ${BASE_BRANCH} "
60
- git checkout ${BASE_BRANCH}
60
+ git checkout " ${BASE_BRANCH} "
61
61
echo " Fetching target ref ${REF} "
62
- git fetch origin ${REF} : ${LOCAL_BRANCH_NAME}
62
+ git fetch origin " ${REF} " : " ${LOCAL_BRANCH_NAME} "
63
63
echo " Checking out target ref to ${LOCAL_BRANCH_NAME} "
64
- git checkout ${LOCAL_BRANCH_NAME}
64
+ git checkout " ${LOCAL_BRANCH_NAME} "
65
65
fi
66
66
}
67
67
@@ -72,12 +72,12 @@ DIFF=
72
72
73
73
if [[ " $GITHUB_EVENT_NAME " == " pull_request" ]]; then
74
74
echo " Preparing file diff"
75
- DIFF=$( git diff --name-only $GITHUB_BASE_REF ...HEAD)
75
+ DIFF=$( git diff --name-only " $GITHUB_BASE_REF " ...HEAD)
76
76
fi
77
77
78
78
if [[ " $DIFF " != " " ]]; then
79
79
echo " Found changes in the following files:"
80
- echo ${DIFF}
80
+ echo " ${DIFF} "
81
81
fi
82
82
83
- /action/main.js ${DIFF}
83
+ /action/main.js " ${DIFF} "
You can’t perform that action at this time.
0 commit comments