Domain_Check/.gitea/workflows/daily_domain_check.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

2024-08-19 06:05:50 +02:00
name: Daily Domain Check
on:
schedule:
- cron: "0 0 * * *" # Runs daily at midnight
2024-08-19 06:17:23 +02:00
push:
2024-08-19 06:05:50 +02:00
jobs:
domain_check:
2024-08-19 06:35:37 +02:00
runs-on: ubuntu-latest
2024-08-19 06:05:50 +02:00
steps:
2024-08-19 06:35:37 +02:00
- name: Checkout code
uses: actions/checkout@v2
2024-08-19 06:05:50 +02:00
- name: Set up Python
uses: actions/setup-python@v3
2024-08-19 06:44:51 +02:00
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
2024-08-19 06:05:50 +02:00
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# Add any other dependencies your script needs here
- 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"
- name: Create release and upload result
run: |
today=$(date +%Y-%m-%d)
gitea release create --title "Domain Check $today" --assets "domain_$today.txt"
env:
2024-08-19 06:23:54 +02:00
TOKEN: ${{ secrets.TOKEN }}