Skip to content

Check pending domains #12

Check pending domains

Check pending domains #12

Workflow file for this run

name: Check pending domains
run-name: Check pending domains
on:
workflow_dispatch:
schedule:
- cron: '0 12 * * *'
permissions:
contents: write
jobs:
check-pending-domains:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: Check if there are pending domains
run: |
if [[ -d data/pending ]]; then
bash scripts/tools.sh --send-telegram 'Warning: pending domains not cleared'
fi
env:
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}