Skip to content

feat(list): Added @referefref's list #59

feat(list): Added @referefref's list

feat(list): Added @referefref's list #59

Workflow file for this run

---
name: Update Lists
on:
push:
paths:
- "data/v2/manifest.json"
workflow_dispatch:
permissions: read-all
jobs:
publish_manifest:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
permissions:
contents: write
container:
image: ghcr.io/t145/black-mirror:latest
credentials:
username: ${{ github.actor }}
password: ${{ github.token }}
options: --user root
steps:
- name: Checkout repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Sort manifest
run: jaq -ir 'to_entries | sort_by(.value) | sort_by(.key) | from_entries' data/v2/manifest.json
- name: Document manifest
run: |
# shellcheck disable=SC2016
jaq -r '["Source", "Method", "Description", "Homepage", "License"], (to_entries[] | .key as $key | .value.method as $method | .value.metadata | [$key, $method, .description, .homepage, .license]) | @csv' data/v2/manifest.json | csvlook >dist/SOURCES.md
- name: Document AdGuard sources
run: jaq -r '.[] | select(.method == "BLOCK" and .variants.adguard?) | ("!#include " + .variants.adguard)' data/v2/manifest.json >dist/ADGUARD_SOURCES.txt
- name: Whitelist list hosts
run: |
jaq -r '[ .[].mirrors[] | capture("^((?<scheme>[^:/?#]+):)?(//(?<authority>(?<domain>[^/?#:]*)))?").domain ] | unique | sort | .[]' data/v2/manifest.json |
dnsx -nc -silent -cname -ns -resp |
mawk '{print $1; gsub(/[\[\]]/,"",$3); print $3}' >>dist/CONTRIB_DOMAINS.txt
sort -o dist/CONTRIB_DOMAINS.txt -u dist/CONTRIB_DOMAINS.txt
- name: Make commit directory safe
run: git config --global --add safe.directory /__w/black-mirror/black-mirror
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@ac8823709a85c7ce090849ac3e5fe24d006f6e18
with:
commit_message: "ci(lists): ✨📚✨"