Skip to content

Commit 1be087a

Browse files
committed
[ci] Allow spotters to run on pull requests coming from forks
1 parent 84ac1c8 commit 1be087a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)