Remove workflows dir

This commit is contained in:
dvirlabs 2025-06-27 15:50:18 +03:00
parent c762de1267
commit d6c2aaa593

View File

@ -1,29 +0,0 @@
name: Monitor Lab URLs
on:
schedule:
- cron: "*/5 * * * *" # Run every 5 minutes
workflow_dispatch:
jobs:
monitor:
runs-on: ubuntu-latest
steps:
- name: Check Woodpecker URL
run: |
STATUS=$(curl -s -o /dev/null -w "%{http_code}" https://woodpecker.dvirlabs.com)
if [[ "$STATUS" == "502" ]]; then
curl -s \
--form-string "token=${{ secrets.PUSHOVER_TOKEN }}" \
--form-string "user=${{ secrets.PUSHOVER_USER }}" \
--form-string "message=⚠️ Woodpecker is down (502)" \
https://api.pushover.net/1/messages.json
elif [[ "$STATUS" == "404" ]]; then
curl -s \
--form-string "token=${{ secrets.PUSHOVER_TOKEN }}" \
--form-string "user=${{ secrets.PUSHOVER_USER }}" \
--form-string "message=❌ Woodpecker not found (404)" \
https://api.pushover.net/1/messages.json
else
echo "✅ All good: $STATUS"