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