diff --git a/.github/workflows/update_blacklists.yml b/.github/workflows/update_blacklists.yml index 3345c21..0291213 100644 --- a/.github/workflows/update_blacklists.yml +++ b/.github/workflows/update_blacklists.yml @@ -32,6 +32,7 @@ jobs: - run: ./blacklists_updater_txt.sh - run: ./blacklists_updater_nginx.sh - run: ./blacklists_updater_iptables.sh + - run: ./blacklists_updater_nftables.sh - uses: ./.github/actions/gitPush env: PUSH_FILES: blacklists/ blacklists_nginx/ blacklists_iptables/ diff --git a/.github/workflows/update_nftables.yml b/.github/workflows/update_nftables.yml deleted file mode 100644 index 8ac4f4e..0000000 --- a/.github/workflows/update_nftables.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Update nftables Blacklists - -on: - schedule: - - cron: '30 2 * * *' # Daily at 02:30 UTC - workflow_dispatch: - -jobs: - update-nftables: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.x' - - - name: Generate nftables blacklists - run: | - chmod +x blacklists_updater_nftables.sh - ./blacklists_updater_nftables.sh - - - name: Commit and push if changed - run: | - git config --local user.email "github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" - git add blacklists_nftables/ - git diff --quiet && git diff --staged --quiet || \ - (git commit -m "Auto-update nftables blacklists [skip ci]" && git push) -