mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-03-26 03:13:09 +03:00
Automate blacklist updater
This commit is contained in:
10
.github/workflows/bl.yml
vendored
10
.github/workflows/bl.yml
vendored
@@ -2,6 +2,8 @@ name: BlackLists updater
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_PUSH }}
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_PUSH }}
|
||||||
|
REPO_NAME: AS_Network_List
|
||||||
|
REPO_OWNER: C24Be
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -37,13 +39,13 @@ jobs:
|
|||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
- run: ./requirements.sh
|
- run: ./requirements.sh
|
||||||
- run: ./blacklists_updater.sh
|
- run: ./blacklists_updater.sh
|
||||||
- run: curl ifconfig.io
|
- run: curl ifconfig.io -q
|
||||||
- run: |
|
- run: |
|
||||||
timestamp=`date "+%Y-%m-%d_%H-%M-%S"`
|
timestamp=`date "+%Y-%m-%d_%H-%M-%S"`
|
||||||
git config --global user.name 'C24Be'
|
git config --global user.name "${{ env.REPO_OWNER }}"
|
||||||
git config --global user.email 'c24be@github.com'
|
git config --global user.email "${{ env.REPO_OWNER }}@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 https://${{ env.GITHUB_TOKEN }}@github.com/C24Be/AS_Network_List.git
|
git push https://${{ env.REPO_OWNER }}:${{ env.GITHUB_TOKEN }}@github.com/${{ env.REPO_OWNER }}/${{ env.REPO_NAME }}.git
|
||||||
|
|||||||
Reference in New Issue
Block a user