Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1175208?usp=email )
Change subject: tests: Print public IP of runner on failure
......................................................................
tests: Print public IP of runner on failure
Change-Id: I503c6f240d3c87b5d282765915575aca63fa7178
---
M .github/workflows/pywikibot-ci.yml
1 file changed, 4 insertions(+), 1 deletion(-)
Approvals:
Xqt: Verified; Looks good to me, approved
diff --git a/.github/workflows/pywikibot-ci.yml
b/.github/workflows/pywikibot-ci.yml
index 8489ebd..f359b03 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -147,4 +147,7 @@
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Check on failure
if: steps.ci_test.outcome == 'failure'
- run: exit 1
+ run: |
+ # Print public IP of runner
+ python -c "import urllib.request; print('Public IP:',
urllib.request.urlopen('https://api.ipify.org').read().decode('utf-8'))"
+ exit 1
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1175208?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I503c6f240d3c87b5d282765915575aca63fa7178
Gerrit-Change-Number: 1175208
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]