respect-validation/.github/workflows/update-regionals.yml
Alexandre Gomes Gaigalas 7c8ecfa317 Fix PublicSuffix validator and UpdateDomainSuffixesCommand
- Parce PSL ICANN section into structured sections (rules,
   wildcards, exceptions) according to the format.
 - Updates PublicSuffix semantics for complete application of
   the rules.
 - Includes private domain suffixes now.
 - Refreshes the existing data.
 - Fixes the update-regionals.yml workflow, set it to run
   twice a week.

References: https://github.com/publicsuffix/list/wiki/Format#format
2026-02-23 12:18:57 +00:00

53 lines
1.5 KiB
YAML

name: Update Regional Information
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1' # weekly on mondays at 00:00
- cron: '0 0 * * 4' # weekly on thursdays at 00:00
permissions:
contents: write
pull-requests: write
jobs:
update-regional-information:
name: Update Regional Information
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ secrets.LAST_MINOR_VERSION }}
- name: Setup environment
uses: ./.github/actions/setup-action
- name: Update top level domains
run: bin/console update:domain-toplevel
- name: Update public domain suffixes
run: bin/console update:domain-suffixes
- name: Update postal codes
run: bin/console update:postal-codes
- name: Create pull request
id: cpr
uses: peter-evans/create-pull-request@v8
with:
committer: The Respect Panda <therespectpanda@gmail.com>
author: The Respect Panda <therespectpanda@gmail.com>
commit-message: Update Regional Information
title: Update Regional Information
base: ${{ secrets.LAST_MINOR_VERSION }}
branch: "workflows/update-regional-information"
- name: Enable auto-merge for PR
if: steps.cpr.outputs.pull-request-number
uses: peter-evans/enable-pull-request-automerge@v3
with:
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
merge-method: rebase