From 6055967edbb5bf77e4e346e93508054d9ceb2c91 Mon Sep 17 00:00:00 2001 From: shawndeng <62068110+ShawnDen-coder@users.noreply.github.com> Date: Tue, 18 Feb 2025 20:14:50 +0800 Subject: [PATCH] feat: update github bump version --- .../.github/workflows/bump_version.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows/bump_version.yaml b/repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows/bump_version.yaml index e96ded6..f583732 100644 --- a/repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows/bump_version.yaml +++ b/repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows/bump_version.yaml @@ -5,7 +5,6 @@ on: branches: - master - main - workflow_dispatch: inputs: increment: @@ -28,15 +27,22 @@ jobs: runs-on: ubuntu-latest name: "Bump version and create changelog with commitizen" steps: + - name: Load secret + uses: 1password/load-secrets-action@v2 + with: + export-env: true + env: + OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} + PERSONAL_ACCESS_TOKEN: op://shawndengdev/github_access_token/credential - name: Check out uses: actions/checkout@v4 with: fetch-depth: 0 - token: '${{ github.token }}' + token: '${{ env.PERSONAL_ACCESS_TOKEN }}' - name: Create bump and changelog uses: commitizen-tools/commitizen-action@master with: - github_token: '${{ github.token }}' + github_token: ${{ env.PERSONAL_ACCESS_TOKEN }} branch: master