Don't kill Runner.Listener when steps running (#30)
authorAsh Berlin-Taylor <ash_github@firemirror.com>
Tue, 18 May 2021 09:48:09 +0000 (10:48 +0100)
committerGitHub <noreply@github.com>
Tue, 18 May 2021 09:48:09 +0000 (10:48 +0100)
commitc5c38ee6c8fd68708016c92dfadb1f9ce49fbf91
treecd7d1abccd6cac8d4b41be6b99a03c364eaf0154
parent82d9ba23db12f0bcd3e0c8b0a0ee5e6a9a133b19
Don't kill Runner.Listener when steps running (#30)

Because of the `--once` flag we already pass to the deamon, _if_ there
were any jobs running, then the main actions-runner deamon (the
Runner.Listener process) will shut it self down once it's _actually_
finished.

So we want to avoid the `pkill Runner.Listener` in the case when a step
was executing, as otherwise we will likely kill the deamon before it has
a chance to complete the job/report back to GitHub/run the next step.
github-runner-ami/packer/files/stop-runner-if-no-job.sh