Skip to content

Validate domains

Validate domains #36

name: Validate domains
run-name: Validate domains
on:
workflow_dispatch:
workflow_call:
permissions:
contents: write
jobs:
validate-domains:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: validate_domains.sh
run: bash scripts/validate_domains.sh
env:
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
- name: Push
run: |
git config user.email ${{ vars.GIT_EMAIL }}
git config user.name ${{ vars.GIT_USERNAME }}
git add .
git diff-index --quiet HEAD || git commit -m "CI: validate domains"
git push -q