This action tries to connect to the port and return the result.
Required Try to connect to this port or ports.
Connect to this hostname. Default "localhost"
.
Pause (in milliseconds) before check. Default 0
.
The result will be true if the port is not reachable. Default "false"
.
Fail action if the result is not fulfilled. Default "false"
.
Return true if all ports are opened or not(for reverse=true)
uses: nrukavkov/open-ports-check-action@v1
with:
port: 80, 443
host: 'google.com'
pause: 1000
needFail: 'true'
reverse: 'false'
uses: nrukavkov/open-ports-check-action@v1
with:
port: 80, 443
host: 'yandex.ru'
pause: 1000
needFail: 'true'
reverse: 'true'