Update update_blacklist.yml
This commit is contained in:
parent
6bb23c97f2
commit
523315a014
|
@ -11,7 +11,10 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- 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
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
|
@ -23,6 +26,11 @@ jobs:
|
||||||
pip install requests
|
pip install requests
|
||||||
pip install ipaddress
|
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
|
- name: Run the script
|
||||||
run: python process_blacklist.py
|
run: python process_blacklist.py
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue