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 single domain check run: python single_domain_check.py - name: Run domain check run: python domain_check.py - name: Save output with date run: | today=$(date +%Y-%m-%d) mv domain.txt "domain_$today.txt" mv domains.txt "domains_$today.txt" - name: Create release and upload result run: | today=$(date +%Y-%m-%d) gitea release create --title "Single Domain Check $today" --assets "domain_$today.txt" --assets "domains_$today.txt" env: TOKEN: ${{ secrets.TOKEN }}