Skip to content

Update TLDs

Update TLDs #11

Workflow file for this run

name: Update TLDs
on:
schedule:
- cron: "0 0 * * *" # Run daily at midnight UTC
workflow_dispatch:
jobs:
update_tlds:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Set remote URL with token
run: |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/haveibeensquatted/twistrs.git
- name: Configure Git identity
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Install Python dependencies
run: pip install requests
- name: Run update script
run: python twistrs/data/update-psl.py