From 523315a0145ee3a149ad19c99e2ea00ffb41e152 Mon Sep 17 00:00:00 2001 From: jqtmviyu Date: Tue, 30 Jul 2024 11:13:52 +0800 Subject: [PATCH] Update update_blacklist.yml --- .github/workflows/update_blacklist.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_blacklist.yml b/.github/workflows/update_blacklist.yml index 05f6642..9203e49 100644 --- a/.github/workflows/update_blacklist.yml +++ b/.github/workflows/update_blacklist.yml @@ -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