mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-01-25 23:35:41 +03:00
Automate blacklist updater
This commit is contained in:
16
.github/workflows/bl.yml
vendored
16
.github/workflows/bl.yml
vendored
@@ -1,7 +1,7 @@
|
|||||||
name: BlackLists updater
|
name: BlackLists updater
|
||||||
|
|
||||||
#env:
|
env:
|
||||||
# GITHUB_TOKEN: ${{ secrets.GHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_PUSH }}
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -33,17 +33,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0 # this is required to fetch all history for all branches and tags
|
fetch-depth: 0 # this is required to fetch all history for all branches and tags
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
- run: pip install -r requirements.txt
|
with:
|
||||||
|
python-version: '3.12'
|
||||||
|
- run: ./requirements.sh
|
||||||
- run: ./blacklists_updater.sh
|
- run: ./blacklists_updater.sh
|
||||||
- run: curl ifconfig.io
|
- run: curl ifconfig.io
|
||||||
- run: |
|
- run: |
|
||||||
timestamp=`date "+%Y-%m-%d_%H-%M-%S"`
|
timestamp=`date "+%Y-%m-%d_%H-%M-%S"`
|
||||||
git config --global user.name 'github-actions'
|
git config --global user.name 'C24Be'
|
||||||
git config --global user.email 'github-actions@github.com'
|
git config --global user.email 'c24be@github.com'
|
||||||
git status
|
git status
|
||||||
git diff
|
git diff
|
||||||
git add blacklist*txt
|
git add blacklist*txt
|
||||||
git commit -m "Update blacklists: $timestamp"
|
git commit -m "Update blacklists: $timestamp"
|
||||||
git push
|
git push https://${{ env.GITHUB_TOKEN }}@github.com/C24Be/AS_Network_List.git
|
||||||
env:
|
|
||||||
GH_PAT: ${{ secrets.GH_TOKEN_PUSH }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user