File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ if [ $? -ne 0 ]; then
42
42
local ERROR_MESSAGE=($( ErrorMessage " run.sh" " 0109" ) )
43
43
echo $ERROR_MESSAGE && exit 1
44
44
fi
45
- echo " Parsed CONFIG_JSON : $CONFIG_JSON " # debug
45
+ echo " Parsed just.config.js module.exports : $CONFIG_JSON " # debug
46
46
echo " $CONFIG_JSON " > " $CONFIG_DATA "
47
47
48
48
if [ -z " $( echo " $CONFIG_JSON " | jq -r ' .module.exports' ) " ]; then
@@ -90,7 +90,13 @@ if [ "$TYPE" == "postprocessor" ]; then
90
90
bash $GITHUB_ACTION_PATH /src/postprocessor/override_deployment.sh && \
91
91
bash $GITHUB_ACTION_PATH /src/postprocessor/build_map.sh
92
92
elif [ " $TYPE " == " redirect" ]; then
93
- sudo apt update
94
- sudo apt install -y nodejs npm
93
+ mkdir -p deploy/_just
94
+ sudo apt update -qq && sudo apt install -y nodejs npm > /dev/null 2>&1
95
+ if [ $? -ne 0 ]; then
96
+ local ERROR_MESSAGE=($( ErrorMessage " run.sh" " 0205" ) )
97
+ echo $ERROR_MESSAGE
98
+ sudo apt update
99
+ sudo apt install -y nodejs npm
100
+ fi
95
101
node $GITHUB_ACTION_PATH /src/redirect/index.js
96
102
fi
You can’t perform that action at this time.
0 commit comments