File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,16 @@ jobs:
2121 steps :
2222 - name : Send Magic Packet
2323 env :
24- TARGET_IP : ${{ secrets.DELL_IP }}
25- MAC_ADDR : ${{ secrets.DELL_MAC }}
24+ TARGET_IP : 192.168.100.30
25+ MAC_ADDR : a4:bb:6d:51:d5:d2
2626 # The container has no ping, emulate it.
27- PING : " timeout 1 bash -c 'cat < /dev/null > /dev/tcp/${{ secrets.DELL_IP }}/22' 2>/dev/null"
2827 run : |
2928 # Mask the IP and potential broadcast to keep logs clean
29+ echo "::add-mask::$MAC_ADDR"
30+ echo "::add-mask::$BROADCAST"
3031 echo "::add-mask::$TARGET_IP"
3132 BROADCAST=$(echo $TARGET_IP | sed 's/\.[0-9]*$/ .255/' | tr -d ' ')
32- echo "::add-mask::$BROADCAST "
33+ PING="timeout 1 bash -c 'cat < /dev/null > /dev/tcp/$TARGET_IP/22' 2>/dev/null "
3334
3435 # Install tool silently
3536 sudo apt-get update -qq && sudo apt-get install -y -qq wakeonlan > /dev/null
You can’t perform that action at this time.
0 commit comments