Public Suffix List #86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow | |
name: "Public Suffix List" | |
on: # yamllint disable-line rule:truthy | |
schedule: | |
# Update Monday | |
- cron: "30 04 * * 1" | |
workflow_dispatch: null | |
permissions: | |
contents: "write" | |
pull-requests: "write" | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
update: | |
name: "Update" | |
runs-on: "ubuntu-22.04" | |
timeout-minutes: 1 | |
steps: | |
- | |
name: "Checkout repository" | |
uses: "actions/checkout@v4" | |
- | |
name: "Update list" | |
run: | | |
wget -nv -O "data/public_suffix_list.dat" "https://publicsuffix.org/list/public_suffix_list.dat" | |
- | |
name: "Check difference to repository" | |
id: "list_diff" | |
run: | | |
if ! git diff --exit-code; then | |
echo "exit_status=1" >>"${GITHUB_OUTPUT}" | |
fi | |
- | |
name: "Create pull request" | |
if: "${{ steps.list_diff.outputs.exit_status == '1' }}" | |
uses: "peter-evans/create-pull-request@v5" | |
with: | |
add-paths: "data/public_suffix_list.dat" | |
branch: "psl-update" | |
commit-message: "Update public suffix list" | |
title: "Auto update PSL" | |
body: | | |
Automated changes by `create-pull-request` GitHub action. | |
See https://github.com/publicsuffix/list | |
delete-branch: true |