mirror of
https://github.com/itdoginfo/allow-domains.git
synced 2025-04-16 19:49:08 +00:00
Add more logging
This commit is contained in:
parent
38cb76b827
commit
b1def56e61
2 changed files with 5 additions and 2 deletions
2
.github/workflows/create-lists.yml
vendored
2
.github/workflows/create-lists.yml
vendored
|
@ -31,7 +31,7 @@ jobs:
|
||||||
-v ${{ github.workspace }}/Services:/app/Services \
|
-v ${{ github.workspace }}/Services:/app/Services \
|
||||||
-v ${{ github.workspace }}/SRS:/app/SRS \
|
-v ${{ github.workspace }}/SRS:/app/SRS \
|
||||||
-v ${{ github.workspace }}/DAT:/app/DAT \
|
-v ${{ github.workspace }}/DAT:/app/DAT \
|
||||||
itdoginfo/compilesrs:0.1.5
|
unidcml/allow-domains-test:1.0.0
|
||||||
|
|
||||||
- name: Check Russia/inside-dnsmasq-ipset
|
- name: Check Russia/inside-dnsmasq-ipset
|
||||||
uses: itdoginfo/dnsmasq-action@0.1
|
uses: itdoginfo/dnsmasq-action@0.1
|
||||||
|
|
|
@ -335,8 +335,11 @@ def generate_dat_domains(data_path='geosite_data', output_name='geosite.dat', ou
|
||||||
try:
|
try:
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
["domain-list-community", f"-datapath={data_path}", f"-outputname={output_name}", f"-outputdir={output_directory}"],
|
["domain-list-community", f"-datapath={data_path}", f"-outputname={output_name}", f"-outputdir={output_directory}"],
|
||||||
check=True
|
check=True,
|
||||||
|
stdout=subprocess.DEVNULL,
|
||||||
|
stderr=subprocess.DEVNULL
|
||||||
)
|
)
|
||||||
|
print(f"Compiled .dat file: {output_directory}/{output_name}")
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
print(f"Compile error geosite.dat: {e}")
|
print(f"Compile error geosite.dat: {e}")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue