Skip to content

Commit 5009bc7

Browse files
committed
chore: update demo to the latest cookiecutter-robust-python
1 parent f2464be commit 5009bc7

File tree

3 files changed

+21
-17
lines changed

3 files changed

+21
-17
lines changed

.cookiecutter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"_commit": "89c528b34bcdcdbb5c3e7c0d5213c1702bfdfa38",
2+
"_commit": "f93aa52be4b1117a977ca88e27f03b44b3ae8e67",
33
"_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
44
"add_rust_extension": false,
55
"author": "Kyle Oliver",

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
3-
"commit": "89c528b34bcdcdbb5c3e7c0d5213c1702bfdfa38",
3+
"commit": "f93aa52be4b1117a977ca88e27f03b44b3ae8e67",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -18,7 +18,7 @@
1818
"license": "MIT",
1919
"development_status": "Development Status :: 1 - Planning",
2020
"_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
21-
"_commit": "89c528b34bcdcdbb5c3e7c0d5213c1702bfdfa38"
21+
"_commit": "f93aa52be4b1117a977ca88e27f03b44b3ae8e67"
2222
}
2323
},
2424
"directory": null

.github/workflows/bump-version.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
- "release/*"
77

88
jobs:
9-
bump-version:
10-
name: "Bump version and create changelog with commitizen"
9+
bump-version-and-draft-release:
10+
name: Bump Version and Draft Release
1111
if: "!startsWith(github.event.head_commit.message, 'bump:')"
1212
runs-on: ubuntu-latest
1313
steps:
@@ -16,14 +16,24 @@ jobs:
1616
with:
1717
token: ${{ secrets.GITHUB_TOKEN }}
1818
fetch-depth: 0
19+
1920
- name: Create bump and changelog
2021
uses: commitizen-tools/commitizen-action@master
2122
with:
2223
github_token: ${{ secrets.GITHUB_TOKEN }}
2324
changelog_increment_filename: body.md
2425

25-
generate-release-notes:
26-
name: "Get Release Notes"
26+
- name: Create Release Draft
27+
uses: softprops/action-gh-release@v1
28+
with:
29+
body_path: body.md
30+
tag_name: ${{ env.REVISION }}
31+
draft: true
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
35+
draft-release:
36+
name: Draft Release
2737
if: "startsWith(github.event.head_commit.message, 'bump:')"
2838
runs-on: ubuntu-latest
2939
steps:
@@ -36,22 +46,16 @@ jobs:
3646
- name: Set up Python
3747
uses: actions/setup-python@v5
3848
with:
39-
python-version-file: ".github/workflows/.python-version"
49+
python-version-file: .github/workflows/.python-version
4050

4151
- name: Get Release Notes
4252
run: uvx nox -s get-release-notes
4353

44-
generate-release-draft:
45-
name: "Generate Release Draft"
46-
if: always()
47-
needs: [bump-version, generate-release-notes]
48-
runs-on: ubuntu-latest
49-
steps:
50-
- name: Release
54+
- name: Create Release Draft
5155
uses: softprops/action-gh-release@v1
5256
with:
53-
body_path: "body.md"
57+
body_path: body.md
5458
tag_name: ${{ env.REVISION }}
55-
draft: "true"
59+
draft: true
5660
env:
5761
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)