Skip to content

Commit 1a53d6e

Browse files
authored
Update setup-docker.js
1 parent e311ebd commit 1a53d6e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/setup-docker.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async function run() {
102102
if (platform === 'win32') {
103103
core.debug('check platform');
104104
await exec.exec('echo',
105-
[`Only Support Linux and macOS platform, this platform is ${os.platform()}`]);
105+
[`::error::Only Support Linux and macOS platform, this platform is ${os.platform()}`]);
106106

107107
return
108108
}
@@ -178,11 +178,11 @@ while ! /Applications/Docker.app/Contents/Resources/bin/docker system info &>/de
178178
command -v docker || echo 'test docker command loop: not found'
179179
sleep 1
180180
# wait 180s(3min)
181-
if [ $i -gt 180 ];then sudo /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check;uname -a;system_profiler SPHardwareDataType;echo "-- Wait docker start $i s too long, exit"; exit 1; fi
181+
if [ $i -gt 180 ];then sudo /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check;uname -a;system_profiler SPHardwareDataType;echo "::error::-- Wait docker start $i s too long, exit"; exit 1; fi
182+
done
183+
echo "::notice::-- Docker is ready.Wait time is $i s"
182184
uname -a || true
183185
system_profiler SPHardwareDataType || true
184-
done
185-
echo "-- Docker is ready."
186186
`]);
187187
core.endGroup();
188188

0 commit comments

Comments
 (0)