Skip to content

Commit 00407a1

Browse files
feat: update github bump version
1 parent 8cf334c commit 00407a1

File tree

1 file changed

+9
-3
lines changed
  • repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows

1 file changed

+9
-3
lines changed

repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows/bump_version.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
branches:
66
- master
77
- main
8-
98
workflow_dispatch:
109
inputs:
1110
increment:
@@ -28,15 +27,22 @@ jobs:
2827
runs-on: ubuntu-latest
2928
name: "Bump version and create changelog with commitizen"
3029
steps:
30+
- name: Load secret
31+
uses: 1password/load-secrets-action@v2
32+
with:
33+
export-env: true
34+
env:
35+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
36+
PERSONAL_ACCESS_TOKEN: op://shawndengdev/github_access_token/credential
3137

3238
- name: Check out
3339
uses: actions/checkout@v4
3440
with:
3541
fetch-depth: 0
36-
token: '${{ github.token }}'
42+
token: '${{ env.PERSONAL_ACCESS_TOKEN }}'
3743

3844
- name: Create bump and changelog
3945
uses: commitizen-tools/commitizen-action@master
4046
with:
41-
github_token: '${{ github.token }}'
47+
github_token: ${{ env.PERSONAL_ACCESS_TOKEN }}
4248
branch: master

0 commit comments

Comments
 (0)