From 477c0759923f9b75e32cc6ca20fd18ca625a1026 Mon Sep 17 00:00:00 2001 From: Be Date: Sat, 2 Mar 2024 12:01:00 +0100 Subject: [PATCH] Automate blacklist updater --- .github/workflows/bl.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bl.yml b/.github/workflows/bl.yml index 555f25b..96722f4 100644 --- a/.github/workflows/bl.yml +++ b/.github/workflows/bl.yml @@ -2,6 +2,8 @@ name: BlackLists updater env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN_PUSH }} + REPO_NAME: AS_Network_List + REPO_OWNER: C24Be on: workflow_dispatch: @@ -37,13 +39,13 @@ jobs: python-version: '3.12' - run: ./requirements.sh - run: ./blacklists_updater.sh - - run: curl ifconfig.io + - run: curl ifconfig.io -q - run: | timestamp=`date "+%Y-%m-%d_%H-%M-%S"` - git config --global user.name 'C24Be' - git config --global user.email 'c24be@github.com' + git config --global user.name "${{ env.REPO_OWNER }}" + git config --global user.email "${{ env.REPO_OWNER }}@github.com" git status git diff git add blacklist*txt 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