Improve auto-updaters and pull requesters, auto-tld fix

This commit is contained in:
Alexandre Gomes Gaigalas 2023-02-15 00:44:30 -03:00
parent 8b3c607d03
commit f080f7da08
5 changed files with 18 additions and 4 deletions

14
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,14 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
# Maintain dependencies for Composer
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "weekly"

View file

@ -3,7 +3,7 @@ name: Update currency codes
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: '0 0 * * 0' - cron: '0 0 * * *'
jobs: jobs:
update-currency-codes: update-currency-codes:

View file

@ -3,7 +3,7 @@ name: Update language codes
on: on:
workflow_dispatch: workflow_dispatch:
schedule: schedule:
- cron: '0 0 * * 0' - cron: '0 0 * * *'
jobs: jobs:
update-language-codes: update-language-codes:

View file

@ -20,7 +20,7 @@ echo "- Creating temporary file"
sed --silent --regexp-extended "/^</,/^\{/p" "${RULE_FILENAME}" sed --silent --regexp-extended "/^</,/^\{/p" "${RULE_FILENAME}"
echo " /**" echo " /**"
echo " * List extracted from ${LIST_URL}" echo " * List extracted from ${LIST_URL}"
echo " * $(grep "^#" "${LIST_FILENAME}" | sed "s,# ,,")" echo " * $(grep "^#" "${LIST_FILENAME}" | sed "s,# ,," | cut -d"," -f1)"
echo " */" echo " */"
echo " private const TLD_LIST = [" echo " private const TLD_LIST = ["
grep --invert-match "^#" "${LIST_FILENAME}" | grep --invert-match "^#" "${LIST_FILENAME}" |

View file

@ -29,7 +29,7 @@ final class Tld extends AbstractRule
{ {
/** /**
* List extracted from https://data.iana.org/TLD/tlds-alpha-by-domain.txt * List extracted from https://data.iana.org/TLD/tlds-alpha-by-domain.txt
* Version 2023021200, Last Updated Sun Feb 12 07:07:01 2023 UTC * Version 2023021400
*/ */
private const TLD_LIST = [ private const TLD_LIST = [
'AAA', 'AARP', 'ABARTH', 'ABB', 'ABBOTT', 'ABBVIE', 'ABC', 'ABLE', 'AAA', 'AARP', 'ABARTH', 'ABB', 'ABBOTT', 'ABBVIE', 'ABC', 'ABLE',