From 31a642dcb34ba80dbf709572e6c9007d4597d847 Mon Sep 17 00:00:00 2001 From: Be Date: Sat, 2 Mar 2024 11:50:07 +0100 Subject: [PATCH] Automate blacklist updater --- .github/workflows/bl.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bl.yml b/.github/workflows/bl.yml index 5067531..74a6b6f 100644 --- a/.github/workflows/bl.yml +++ b/.github/workflows/bl.yml @@ -35,8 +35,8 @@ jobs: - uses: actions/setup-python@v5 - run: pip install -r requirements.txt - run: ./blacklists_updater.sh + - run: curl ifconfig.io - run: | - curl ifconfig.io timestamp=`date "+%Y-%m-%d_%H-%M-%S"` git config --global user.name 'github-actions' git config --global user.email 'github-actions@github.com' @@ -45,3 +45,5 @@ jobs: git add blacklist*txt git commit -m "Update blacklists: $timestamp" git push + env: + GH_PAT: ${{ secrets.GH_TOKEN_PUSH }}