Skip to content

Commit

Permalink
Tweak waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Garber committed Jul 15, 2021
1 parent 1ce7e8d commit 2de1618
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ jobs:
id: bad_conn
with:
remotehost: '1.1.1.1'
remoteport: '8675'
continue-on-error: true
remoteport: '8675'
6 changes: 5 additions & 1 deletion entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ def main():
my_host = os.environ["INPUT_REMOTEHOST"]
my_port = os.environ["INPUT_REMOTEPORT"]

netcat(my_host, my_port)
try:
netcat(my_host, my_port)
except TimeoutError:
print("Timed out waiting for connection")
raise Exception("Timed out waiting for connection")

my_output = "Yay!"
print(f"::set-output name=myOutput::{my_output}")
Expand Down

0 comments on commit 2de1618

Please sign in to comment.