update part code div sponsor #234
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: Check Domain Status | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check-domain: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Check domain status | |
run: | | |
echo "Checking domain status..." | |
STATUS=$(curl -Is https://fedired.com | head -n 1) | |
if [[ $STATUS == *"200"* ]]; then | |
echo "Domain is reachable" | |
else | |
echo "Warning: Domain is not reachable" | |
echo "Response: $STATUS" | |
fi |