-
Notifications
You must be signed in to change notification settings - Fork 23k
Commit
Enables SSH to linux GHA runners for FB employees while on the FB VPN SSH keys will be added to runners when the label "with-ssh" is applied to your pull request. Signed-off-by: Eli Uriegas <eliuriegas@fb.com> ghstack-source-id: 6ee7575b239737570e264f3a5d16c3cde7f2432e Pull Request resolved: #62280 Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eou pipefail | ||
|
||
echo "Holding runner for 2 hours until all ssh sessions have logged out" | ||
for _ in $(seq 1440); do | ||
# Break if no ssh session exists anymore | ||
if [ "$(who)" = "" ]; then | ||
break | ||
fi | ||
echo "." | ||
sleep 5 | ||
done |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.