mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-01-26 07:45:07 +03:00
Move NFTables updated to teh main BlackLists updater pipeline
This commit is contained in:
1
.github/workflows/update_blacklists.yml
vendored
1
.github/workflows/update_blacklists.yml
vendored
@@ -32,6 +32,7 @@ jobs:
|
|||||||
- run: ./blacklists_updater_txt.sh
|
- run: ./blacklists_updater_txt.sh
|
||||||
- run: ./blacklists_updater_nginx.sh
|
- run: ./blacklists_updater_nginx.sh
|
||||||
- run: ./blacklists_updater_iptables.sh
|
- run: ./blacklists_updater_iptables.sh
|
||||||
|
- run: ./blacklists_updater_nftables.sh
|
||||||
- uses: ./.github/actions/gitPush
|
- uses: ./.github/actions/gitPush
|
||||||
env:
|
env:
|
||||||
PUSH_FILES: blacklists/ blacklists_nginx/ blacklists_iptables/
|
PUSH_FILES: blacklists/ blacklists_nginx/ blacklists_iptables/
|
||||||
|
|||||||
33
.github/workflows/update_nftables.yml
vendored
33
.github/workflows/update_nftables.yml
vendored
@@ -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)
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user