From 42707ad46aecd2bdceddc277e4b3a2263be36e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Tue, 2 May 2023 10:30:21 -0400 Subject: [PATCH] ci/cd test mmdb update --- .github/workflows/dev-update-mmdb.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dev-update-mmdb.yml b/.github/workflows/dev-update-mmdb.yml index 20203ccb4..237e0c5a0 100644 --- a/.github/workflows/dev-update-mmdb.yml +++ b/.github/workflows/dev-update-mmdb.yml @@ -5,15 +5,29 @@ permissions: on: workflow_dispatch: + secrets: + BUNKERBOT_TOKEN: + required: true schedule: - - cron: "0 1 5 * *" + cron: "0 1 5 * *" + secrets: + BUNKERBOT_TOKEN: + required: true + push: + branches: [testmmdb] + secrets: + BUNKERBOT_TOKEN: + required: true jobs: mmdb-update: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout source code uses: actions/checkout@v3 + with: + fetch-depth: 0 + token: ${{ secrets.BUNKERBOT_TOKEN }} - name: Download mmdb files run: | mkdir -p src/bw/misc/ @@ -29,5 +43,5 @@ jobs: branch: dev commit_message: "Monthly mmdb update" commit_options: "--no-verify" - commit_user_name: "GitHub Actions" - commit_user_email: "tdiot@bunkerity.com" + commit_user_name: "BunkerBot" + commit_user_email: "bunkerbot@bunkerity.com"