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