Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
38 lines
1.2 KiB
YAML
Vendored
38 lines
1.2 KiB
YAML
Vendored
name: Update TLDs list
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 */12 * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update_tlds_list:
|
|
name: Update TLDs list
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
|
|
with:
|
|
token: ${{ secrets.PAT }}
|
|
- name: Setup Python
|
|
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6
|
|
with:
|
|
python-version: "3.14.0"
|
|
- name: Install Python packages
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r tools/requirements.txt
|
|
- name: Make TLD list file
|
|
run: python tools/make_tld_list.py
|
|
- name: Check if there are any changes
|
|
id: verify_diff
|
|
run: |
|
|
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT
|
|
- name: Update TLD file
|
|
if: steps.verify_diff.outputs.changed == 'true'
|
|
run: |
|
|
git config --global user.name 'github-actions[bot]'
|
|
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
|
git commit -am "chore: Automatic update of TLDs list (`date +'%Y-%m-%d %H:%M:%S'`)"
|
|
git push
|