File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ jobs:
31
31
uses : actions/checkout@v4
32
32
with :
33
33
fetch-depth : 0
34
- token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
34
+ token : ${{ needs.setup.outputs.personal-access-token || github.token }}
35
35
36
36
- id : cz
37
37
name : Create bump and changelog
38
38
uses : commitizen-tools/commitizen-action@master
39
39
with :
40
- github_token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
40
+ github_token : ${{ needs.setup.outputs.personal-access-token || github.token }}
41
41
changelog_increment_filename : body.md
42
42
increment : ${{ github.event.inputs.increment }}
43
43
47
47
body_path : body.md
48
48
tag_name : ${{ env.REVISION }}
49
49
env :
50
- GITHUB_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
50
+ GITHUB_TOKEN : ${{ needs.setup.outputs.personal-access-token || github.token }}
Original file line number Diff line number Diff line change @@ -22,22 +22,27 @@ permissions:
22
22
pull-requests : write # 用于创建 PR
23
23
24
24
jobs :
25
+ setup :
26
+ uses : ./.github/workflows/setup.yaml
27
+ secrets : inherit
28
+
25
29
bump-version :
26
30
if : " !startsWith(github.event.head_commit.message, 'bump:')"
31
+ needs : setup
27
32
runs-on : ubuntu-latest
28
33
name : " Bump version and create changelog with commitizen"
29
34
steps :
30
35
- name : Check out
31
36
uses : actions/checkout@v4
32
37
with :
33
38
fetch-depth : 0
34
- token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
39
+ token : ${{ needs.setup.outputs.personal-access-token || github.token }}
35
40
36
41
- id : cz
37
42
name : Create bump and changelog
38
43
uses : commitizen-tools/commitizen-action@master
39
44
with :
40
- github_token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
45
+ github_token : ${{ needs.setup.outputs.personal-access-token || github.token }}
41
46
changelog_increment_filename : body.md
42
47
increment : ${{ github.event.inputs.increment }}
43
48
47
52
body_path : body.md
48
53
tag_name : ${{ env.REVISION }}
49
54
env :
50
- GITHUB_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
55
+ GITHUB_TOKEN : ${{ needs.setup.outputs.personal-access-token || github.token }}
You can’t perform that action at this time.
0 commit comments