Add workflow to check runner IP address
Some checks failed
Check Runner IP Address / check-ip (push) Has been cancelled
Some checks failed
Check Runner IP Address / check-ip (push) Has been cancelled
This commit is contained in:
24
.gitea/workflows/ip-check.yml
Normal file
24
.gitea/workflows/ip-check.yml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
name: Check Runner IP Address
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '.gitea/workflows/ip-check.yml'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-ip:
|
||||||
|
runs-on: ubuntu
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Get runner IP address
|
||||||
|
run: |
|
||||||
|
echo "Runner IP address:"
|
||||||
|
curl ip.sb
|
||||||
|
|
||||||
|
echo "\nAdditional network information:"
|
||||||
|
hostname -I
|
||||||
|
whoami
|
||||||
|
uname -a
|
||||||
Reference in New Issue
Block a user