From 0b6d696716a5dff2fc305d36c1178c08c46285e1 Mon Sep 17 00:00:00 2001 From: Be Date: Sat, 2 Mar 2024 12:06:59 +0100 Subject: [PATCH] Automate blacklist updater --- .github/workflows/bl.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bl.yml b/.github/workflows/bl.yml index 96722f4..230813d 100644 --- a/.github/workflows/bl.yml +++ b/.github/workflows/bl.yml @@ -1,7 +1,7 @@ name: BlackLists updater env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN_PUSH }} + GH_PAT: ${{ secrets.GH_PAT }} REPO_NAME: AS_Network_List REPO_OWNER: C24Be @@ -33,7 +33,8 @@ jobs: steps: - uses: actions/checkout@v4 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 - uses: actions/setup-python@v5 with: python-version: '3.12' @@ -48,4 +49,4 @@ jobs: git diff git add blacklist*txt git commit -m "Update blacklists: $timestamp" - git push https://${{ env.REPO_OWNER }}:${{ env.GITHUB_TOKEN }}@github.com/${{ env.REPO_OWNER }}/${{ env.REPO_NAME }}.git + git push https://${{ env.GH_PAT }}@github.com/${{ env.REPO_OWNER }}/${{ env.REPO_NAME }}.git