mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-01-26 07:45:07 +03:00
Automate blacklist updater
This commit is contained in:
8
.github/workflows/bl.yml
vendored
8
.github/workflows/bl.yml
vendored
@@ -34,19 +34,19 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
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
|
||||||
token: ${{ env.GH_PAT }} # Use the token here for checkout
|
token: ${{ env.GH_PAT }}
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
- run: ./requirements.sh
|
- run: ./requirements.sh
|
||||||
- run: ./blacklists_updater.sh
|
|
||||||
- run: curl ifconfig.io -q
|
- run: curl ifconfig.io -q
|
||||||
|
- run: ./blacklists_updater.sh
|
||||||
- run: |
|
- run: |
|
||||||
timestamp=`date "+%Y-%m-%d_%H-%M-%S"`
|
timestamp=`date "+%Y.%m.%d %H:%M:%S"`
|
||||||
git config --global user.name "${{ env.REPO_OWNER }}"
|
git config --global user.name "${{ env.REPO_OWNER }}"
|
||||||
git config --global user.email "${{ env.REPO_OWNER }}@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 $timestamp"
|
||||||
git push https://${{ env.GH_PAT }}@github.com/${{ env.REPO_OWNER }}/${{ env.REPO_NAME }}.git
|
git push https://${{ env.GH_PAT }}@github.com/${{ env.REPO_OWNER }}/${{ env.REPO_NAME }}.git
|
||||||
|
|||||||
Reference in New Issue
Block a user