Update update_blacklist.yml

This commit is contained in:
jqtmviyu 2024-07-30 11:13:52 +08:00 committed by GitHub
parent 6bb23c97f2
commit 523315a014
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 1 deletions

View File

@ -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