mirror of
https://github.com/jqtmviyu/Transmission-block-xunlei-pcdn.git
synced 2025-01-11 19:28:36 +08:00
Update update_blacklist.yml
This commit is contained in:
parent
6bb23c97f2
commit
523315a014
10
.github/workflows/update_blacklist.yml
vendored
10
.github/workflows/update_blacklist.yml
vendored
@ -11,7 +11,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Pull latest changes
|
||||
run: git pull origin main --rebase
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
@ -23,6 +26,11 @@ jobs:
|
||||
pip install requests
|
||||
pip install ipaddress
|
||||
|
||||
- name: Remove old files
|
||||
run: |
|
||||
if [ -f transmission_blacklist.txt ]; then rm transmission_blacklist.txt; fi
|
||||
if [ -f transmission_blacklist.gz ]; then rm transmission_blacklist.gz; fi
|
||||
|
||||
- name: Run the script
|
||||
run: python process_blacklist.py
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user