37 lines
838 B
YAML
37 lines
838 B
YAML
name: Daily Domain Check
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * *" # Runs daily at midnight
|
|
push:
|
|
|
|
jobs:
|
|
domain_check:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: catthehacker/ubuntu:act-22.04
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12.5'
|
|
|
|
- name: Run domain check
|
|
run: python domain_check.py
|
|
|
|
- name: Save output with date
|
|
run: |
|
|
today=$(date +%Y-%m-%d)
|
|
mv domains.txt "domains_$today.txt"
|
|
|
|
- name: Create release and upload result
|
|
run: |
|
|
today=$(date +%Y-%m-%d)
|
|
gitea release create --title "Domain Check $today" --assets "domains_$today.txt"
|
|
env:
|
|
TOKEN: ${{ secrets.TOKEN }}
|