File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ installDartSass() {
186
186
fi
187
187
fi && \
188
188
local TIME2=$( current_time_ms) && \
189
- DSSECONDS=$( calculate_duration) && \
189
+ DSSECONDS=$( calculate_duration " $TIME1 " " $TIME2 " ) && \
190
190
echo -e " $msg15 ($DSSECONDS )"
191
191
}
192
192
@@ -214,13 +214,6 @@ if [ -z "$(echo "$CONFIG_JSON" | jq -r '.module.exports')" ]; then
214
214
echo -e " ::error::$ERROR_MESSAGE " && exit 1
215
215
fi
216
216
217
- checkForDartSass () {
218
- if ! command -v sass & > /dev/null; then
219
- local ERROR_MESSAGE=$( ErrorMessage " run.sh" " 0134" )
220
- echo -e " ::error::$ERROR_MESSAGE " && exit 1
221
- fi
222
- }
223
-
224
217
CONFIG_VALUES=$( echo " $CONFIG_JSON " | jq -r '
225
218
.mode,
226
219
.install.typescript_compiler,
@@ -254,6 +247,13 @@ install_dependencies() {
254
247
TIME4=$( current_time_ms)
255
248
PREPROCESSED=" n"
256
249
compile_assets () {
250
+ checkForDartSass () {
251
+ if ! command -v sass & > /dev/null; then
252
+ local ERROR_MESSAGE=$( ErrorMessage " run.sh" " 0134" )
253
+ echo -e " ::error::$ERROR_MESSAGE " && exit 1
254
+ fi
255
+ }
256
+
257
257
if [[ " ${COMPILE_TS,,} " == " true" ]]; then
258
258
PREPROCESSED=" y"
259
259
source " $GITHUB_ACTION_PATH /lib/compile.sh"
You can’t perform that action at this time.
0 commit comments