File tree Expand file tree Collapse file tree 2 files changed +22
-6
lines changed
repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,15 @@ permissions:
22
22
pull-requests : write # 用于创建 PR
23
23
24
24
jobs :
25
+ setup :
26
+ uses : ./.github/workflows/setup.yaml
27
+ secrets : inherit
28
+ with :
29
+ python-version : " 3.12"
30
+ install-deps : " none" # 我们不需要安装依赖,因为 commitizen-action 会处理
31
+
25
32
bump-version :
33
+ needs : setup
26
34
if : " !startsWith(github.event.head_commit.message, 'bump:')"
27
35
runs-on : ubuntu-latest
28
36
name : " Bump version and create changelog with commitizen"
@@ -31,13 +39,13 @@ jobs:
31
39
uses : actions/checkout@v4
32
40
with :
33
41
fetch-depth : 0
34
- token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
42
+ token : ${{ secrets.GITHUB_TOKEN }}
35
43
36
44
- id : cz
37
45
name : Create bump and changelog
38
46
uses : commitizen-tools/commitizen-action@master
39
47
with :
40
- github_token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
48
+ github_token : ${{ secrets.GITHUB_TOKEN }}
41
49
changelog_increment_filename : body.md
42
50
increment : ${{ github.event.inputs.increment }}
43
51
47
55
body_path : body.md
48
56
tag_name : ${{ env.REVISION }}
49
57
env :
50
- GITHUB_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
58
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -22,7 +22,15 @@ permissions:
22
22
pull-requests : write # 用于创建 PR
23
23
24
24
jobs :
25
+ setup :
26
+ uses : ./.github/workflows/setup.yaml
27
+ secrets : inherit
28
+ with :
29
+ python-version : " {{cookiecutter.max_python_version}}"
30
+ install-deps : " none" # 我们不需要安装依赖,因为 commitizen-action 会处理
31
+
25
32
bump-version :
33
+ needs : setup
26
34
if : " !startsWith(github.event.head_commit.message, 'bump:')"
27
35
runs-on : ubuntu-latest
28
36
name : " Bump version and create changelog with commitizen"
@@ -31,13 +39,13 @@ jobs:
31
39
uses : actions/checkout@v4
32
40
with :
33
41
fetch-depth : 0
34
- token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
42
+ token : ${{ secrets.GITHUB_TOKEN }}
35
43
36
44
- id : cz
37
45
name : Create bump and changelog
38
46
uses : commitizen-tools/commitizen-action@master
39
47
with :
40
- github_token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
48
+ github_token : ${{ secrets.GITHUB_TOKEN }}
41
49
changelog_increment_filename : body.md
42
50
increment : ${{ github.event.inputs.increment }}
43
51
47
55
body_path : body.md
48
56
tag_name : ${{ env.REVISION }}
49
57
env :
50
- GITHUB_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
58
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments