Ping Web Site #156
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ping Web Site | |
on: | |
push: | |
branches: [ master ] | |
schedule: | |
- cron: 35 21 * * * | |
workflow_dispatch: | |
jobs: | |
ping: | |
runs-on: ubuntu-latest | |
environment: | |
name: webhook | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 6.0.x | |
- name: Ping IP | |
run: | | |
sudo apt-get install -y tcptraceroute bc | |
sudo chmod +x ./tcping | |
sudo mv tcping /usr/local/bin/tcping | |
tcping -x 5 mailla.eu.org 81 | |
tcping -x 5 yeyeshu.lgbt.sh 81 | |
- name: Ping IP | |
env: | |
WEBHOOK: ${{ secrets.WEBHOOK }} | |
run: | | |
sudo chmod +x domainping.sh | |
./domainping.sh | |