Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync changes to query.publicsuffix.zone #2186

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/sync-query-zone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: sync query zone

on:
push:
branches:
- master

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install psl-dns
- name: Check out sync tools
uses: actions/checkout@v4
with:
repository: desec-io/desec-tools
path: desec-tools
- name: Check out PSL
uses: actions/checkout@v4
with:
repository: publicsuffix/list
path: list
sparse-checkout: 'public_suffix_list.dat'
sparse-checkout-cone-mode: false
- name: Run sync
env:
TOKEN: ${{ secrets.DESEC_TOKEN }}
working-directory: ./desec-tools
run: psl-dns_parse ../list/public_suffix_list.dat | ./patch_zone.sh query.publicsuffix.zone -
- name: Print PATCH request data
working-directory: ./desec-tools
run: cat *.json
- name: Print log
working-directory: ./desec-tools
run: cat *.log
Loading