Automate blacklist updater

This commit is contained in:
Be
2024-03-02 11:50:07 +01:00
parent c607ef2539
commit 31a642dcb3

View File

@@ -35,8 +35,8 @@ jobs:
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
- run: pip install -r requirements.txt - run: pip install -r requirements.txt
- run: ./blacklists_updater.sh - run: ./blacklists_updater.sh
- run: curl ifconfig.io
- run: | - run: |
curl ifconfig.io
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 'github-actions'
git config --global user.email 'github-actions@github.com' git config --global user.email 'github-actions@github.com'
@@ -45,3 +45,5 @@ jobs:
git add blacklist*txt git add blacklist*txt
git commit -m "Update blacklists: $timestamp" git commit -m "Update blacklists: $timestamp"
git push git push
env:
GH_PAT: ${{ secrets.GH_TOKEN_PUSH }}