From f2cf5dcd17398ecdbbbefc5440e060722d64e332 Mon Sep 17 00:00:00 2001 From: ljnsn Date: Thu, 14 Mar 2024 19:19:03 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20ci:=20use=20different=20token=20?= =?UTF-8?q?for=20dependabot=20checkout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pythonpackage.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 7c0ec71..bc1296c 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -51,11 +51,20 @@ jobs: !startsWith(github.event.head_commit.message, 'bump(release):') name: "Bump version and create changelog with commitizen" steps: - - name: Check out + - name: Checkout + if: github.actor == 'dependabot[bot]' uses: actions/checkout@v4 with: fetch-depth: 0 - token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" + token: ${{ github.token }} + submodules: recursive + - name: Checkout + if: github.actor != 'dependabot[bot]' + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + submodules: recursive - name: Create bump and changelog uses: commitizen-tools/commitizen-action@master with: