124 Commits

Author SHA1 Message Date
Gitea CI
bababb956e Bump version: 1.0.9 → 1.0.10 2025-05-29 10:42:52 +00:00
0e991a7f23 Merge pull request 'change changelog template to use the Kind/Feature Label in the Features section' (#22) from dev into main
Reviewed-on: #22
2025-05-29 11:42:30 +01:00
d2bcb57d53 fix typo 2025-05-29 12:41:42 +02:00
7bacf6deb6 tell changelog to use feature label 2025-05-29 12:41:06 +02:00
Gitea CI
cadf44ab5b Bump version: 1.0.8 → 1.0.9 2025-05-29 10:33:01 +00:00
e0491fb965 Merge pull request 'Upgrade: Add new print statement to main' (#20) from dev into main
Reviewed-on: #20
2025-05-29 11:32:03 +01:00
9c5e4d0510 test 2025-05-29 12:31:06 +02:00
Gitea CI
4a81ec56e6 Bump version: 1.0.7 → 1.0.8 2025-05-29 10:29:21 +00:00
a316d6630b Merge pull request 're-enable changelog' (#19) from dev into main
Reviewed-on: #19
2025-05-29 11:29:00 +01:00
bf687305ef re-enable changelog 2025-05-29 12:26:25 +02:00
Gitea CI
0bcf0200ab Bump version: 1.0.6 → 1.0.7 2025-05-29 10:24:13 +00:00
6dff0e0cfc Merge pull request 'test: do not use changelog template' (#14) from dev into main
Reviewed-on: #14
2025-05-29 11:23:53 +01:00
474d92e180 test: do not use changelog template 2025-05-29 12:23:32 +02:00
Gitea CI
d00135b00c Bump version: 1.0.5 → 1.0.6 2025-05-29 10:20:22 +00:00
3dfaf8d74d Merge pull request 'refactor: enhance changelog categories with additional labels' (#13) from dev into main
Reviewed-on: #13
2025-05-29 11:20:00 +01:00
73d406e18d refactor: enhance changelog categories with additional labels 2025-05-29 12:18:57 +02:00
Gitea CI
b4b4aadb65 Bump version: 1.0.4 → 1.0.5 2025-05-29 10:17:49 +00:00
b6af2370bb Merge pull request 'remove unnecessary print statement for missing version file' (#11) from dev into main
Reviewed-on: #11
2025-05-29 11:17:29 +01:00
6fdfdbee31 remove unnecessary print statement for missing version file 2025-05-29 12:17:02 +02:00
Gitea CI
5c11d34c84 Bump version: 1.0.3 → 1.0.4 2025-05-29 10:15:50 +00:00
06e714b23b Merge pull request 'experiment: include fetch depth, tags' (#10) from dev into main
Reviewed-on: #10
2025-05-29 11:14:59 +01:00
dd97c0d68a experiment: include fetch depth, tags 2025-05-29 12:13:37 +02:00
Gitea CI
ec5a4f175a Bump version: 1.0.2 → 1.0.3 2025-05-29 09:57:27 +00:00
a94cde06ac Merge pull request 'remove release note string' (#8) from dev into main
Reviewed-on: #8
2025-05-29 10:56:57 +01:00
a0154f345c remove release note string 2025-05-29 11:56:30 +02:00
Gitea CI
794b1ff5e1 Bump version: 1.0.1 → 1.0.2 2025-05-29 09:51:24 +00:00
fc70ae2bdc Merge pull request 'test wf in normal mode' (#6) from dev into main
Reviewed-on: #6
2025-05-29 10:50:52 +01:00
6598e30a42 update hello.py 2025-05-29 11:50:31 +02:00
b07928c8af remove commit mode 2025-05-29 11:50:23 +02:00
Gitea CI
3a47378dc1 Bump version: 1.0.0 → 1.0.1 2025-05-29 09:47:10 +00:00
09c240089f just some bs to hopefully show up in changelog 2025-05-29 11:46:43 +02:00
Gitea CI
9c130ac1d0 Bump version: 0.1.29 → 1.0.0 2025-05-29 09:44:21 +00:00
Gitea CI
721e817b20 Bump version: 0.1.28 → 0.1.29 2025-05-29 09:43:22 +00:00
4a51f0c8e1 add v to release tag 2025-05-29 11:42:55 +02:00
bacdf95171 Add success message after script execution 2025-05-29 11:42:16 +02:00
Gitea CI
b9143544c4 Bump version: 0.1.27 → 0.1.28 2025-05-29 09:17:18 +00:00
4e59dfad54 Refactor release workflow: uncomment and configure push changes, build changelog, and create release steps 2025-05-29 11:16:56 +02:00
a0d0535044 Enable tagging and commit options in bumpversion configuration 2025-05-29 11:15:29 +02:00
ea16d817e1 Remove --locked option from uv sync command in release workflow 2025-05-29 11:13:40 +02:00
9e2621cd60 move bump to pyproject 2025-05-29 11:10:20 +02:00
655b6c0df5 Bump version: 0.1.26 → 0.1.27 2025-05-29 11:09:47 +02:00
605dc750e7 Bump version: 0.1.25 → 0.1.26 2025-05-29 11:09:47 +02:00
78faddf56e Bump version: 0.1.24 → 0.1.25 2025-05-29 11:09:47 +02:00
2686d822cd Update .gitea/workflows/relase.yml 2025-05-29 10:02:47 +01:00
a121e59f47 Refactor release workflow by commenting out unused steps for clarity 2025-05-29 11:01:48 +02:00
Gitea CI
bdc46d7f37 Bump version: 0.1.23 → 0.1.24 2025-05-29 08:58:46 +00:00
Gitea CI
4259f49d94 Bump version: 0.1.22 → 0.1.23 2025-05-29 08:52:44 +00:00
95e2cdcdce Fix changelog action usage by specifying the full GitHub URL for the action 2025-05-29 10:52:21 +02:00
Gitea CI
55d0cb50e6 Bump version: 0.1.21 → 0.1.22 2025-05-29 08:48:29 +00:00
3424805d4e bump version of changelog generator 2025-05-29 10:47:35 +02:00
Gitea CI
5c0fcbdb66 Bump version: 0.1.20 → 0.1.21 2025-05-29 08:46:59 +00:00
f35e19d44d Refactor changelog action to use environment variable for Gitea token 2025-05-29 10:45:52 +02:00
Gitea CI
ef54d663d2 Bump version: 0.1.19 → 0.1.20 2025-05-29 08:43:15 +00:00
2ab0dcd60b Fix changelog action ID and update token secret for Gitea integration 2025-05-29 10:42:50 +02:00
Gitea CI
9a2b6eeafc Bump version: 0.1.18 → 0.1.19 2025-05-29 08:40:05 +00:00
4c6d4a7c6f test rcb 2025-05-29 10:39:04 +02:00
b3decbcd05 Update .gitea/workflows/bumptest.yml 2025-05-29 09:29:47 +01:00
2aed04e150 Update .gitea/workflows/bumptest.yml
Some checks failed
Bump version / build (release) Failing after 35s
2025-05-29 09:26:59 +01:00
5c983986bd test gitchglog 2025-05-29 10:25:46 +02:00
e466a8eada add chglog data 2025-05-29 10:22:34 +02:00
2ee3630392 test new changelog action 2025-05-29 10:16:40 +02:00
d1a0746b3e update wf 2025-05-29 10:11:32 +02:00
9fbf7681ed Update .gitea/workflows/bumptest.yml 2025-05-29 09:09:40 +01:00
387462cfc9 rename dispatch steps 2025-05-29 10:08:03 +02:00
Gitea CI
8e35f02191 Bump version: 0.1.17 → 0.1.18 2025-05-29 08:06:11 +00:00
0f35839fb4 update wf, test new changelog generation 2025-05-29 10:05:38 +02:00
Gitea CI
a055276849 Bump version: 0.1.16 → 0.1.17 2025-05-29 07:53:44 +00:00
Gitea CI
ce670c5539 Bump version: 0.1.15 → 0.1.16 2025-05-26 15:30:02 +00:00
7631ed6e7c update wf, remove rel on push, add new changelog generation test 2025-05-26 17:29:09 +02:00
cc5dc6141c update workflow, change release way
Some checks failed
/ release (push) Failing after 16s
2025-05-26 17:25:18 +02:00
Gitea CI
a960641000 Bump version: 0.1.14 → 0.1.15 2025-05-26 15:21:10 +00:00
d8139a5193 remove create release notes 2025-05-26 17:20:39 +02:00
Gitea CI
6ffc2f6a8f Bump version: 0.1.13 → 0.1.14 2025-05-26 15:19:32 +00:00
26e0da8f0b remove metcalfc/changelog-generator@v4.6.2 2025-05-26 16:19:09 +01:00
Gitea CI
df1688dd75 Bump version: 0.1.12 → 0.1.13 2025-05-26 15:18:20 +00:00
a222e49a1d testing create-release-notes 2025-05-26 17:17:34 +02:00
0ae5543fd2 Update .gitea/workflows/release_notes.yml 2025-05-21 12:00:53 +01:00
ac216e659e new test 2025-05-21 12:34:41 +02:00
ab233d51df Update .gitea/workflows/release_notes.yml 2025-05-21 11:17:39 +01:00
95ce982379 add version 2025-05-21 12:16:31 +02:00
2ae3968679 test 2025-05-21 12:14:53 +02:00
36abce649a add template, update wf 2025-05-21 11:23:43 +02:00
045417ba6f Update .gitea/workflows/release_notes.yml 2025-05-21 10:17:44 +01:00
cd7e1f2af0 fix typo 2025-05-21 11:13:28 +02:00
7b3f8ce11e test new workflow 2025-05-21 11:13:18 +02:00
Gitea CI
592703b6cc Bump version: 0.1.11 → 0.1.12 2025-05-21 08:58:37 +00:00
173d480d5b Update .gitea/workflows/relase.yml 2025-05-21 09:58:15 +01:00
Gitea CI
0e2e20ea28 Bump version: 0.1.10 → 0.1.11 2025-05-21 08:56:30 +00:00
7796df45e5 test new changelog generator 2025-05-21 10:55:31 +02:00
Gitea CI
ae8d2b01b3 Bump version: 0.1.9 → 0.1.10 2025-05-21 08:51:04 +00:00
3bf862d843 Update .gitea/workflows/relase.yml 2025-05-21 09:50:28 +01:00
Gitea CI
c00f2b91cc Bump version: 0.1.8 → 0.1.9 2025-05-21 08:45:16 +00:00
52a95c4860 Update .gitea/workflows/relase.yml 2025-05-21 09:44:53 +01:00
Gitea CI
4eab9159d4 Bump version: 0.1.7 → 0.1.8 2025-05-21 08:44:03 +00:00
6998b4f217 Update .gitea/workflows/relase.yml 2025-05-21 09:43:39 +01:00
23640ed1a0 Update .gitea/workflows/relase.yml 2025-05-21 09:41:12 +01:00
96efc6c312 new test 2025-05-21 10:37:59 +02:00
96bb75653c hard-coded milestone as test 2025-05-21 10:28:38 +02:00
f1b7d2dab8 use example from repo 2025-05-21 10:27:01 +02:00
fae5e23ba7 test in simple env 2025-05-21 10:24:34 +02:00
Gitea CI
fde71d892c Bump version: 0.1.6 → 0.1.7 2025-05-21 08:21:43 +00:00
08e2ba4cf5 Update .gitea/workflows/relase.yml 2025-05-21 09:21:17 +01:00
f37372acfa Update .gitea/workflows/relase.yml 2025-05-21 09:20:08 +01:00
00097b0301 Update .gitea/workflows/relase.yml 2025-05-21 09:19:01 +01:00
78b76b057f Update .gitea/workflows/relase.yml 2025-05-21 09:12:26 +01:00
9d04c05a40 Update .gitea/workflows/relase.yml 2025-05-21 09:11:30 +01:00
0ebae7900b Update .gitea/workflows/relase.yml 2025-05-21 09:09:19 +01:00
a521361f7c Update .gitea/workflows/relase.yml 2025-05-21 09:08:56 +01:00
acf80c9e57 Merge branch 'main' of https://git.theprivateserver.de/PHB/workflowbumptester 2025-05-21 10:06:59 +02:00
6f5957a52f Merge branch 'main' of https://git.theprivateserver.de/PHB/workflowbumptester 2025-05-21 10:06:17 +02:00
Gitea CI
569d09b170 Bump version: 0.1.5 → 0.1.6 2025-05-21 08:06:17 +00:00
43e9660c17 test set changelog using generator 2025-05-21 10:04:18 +02:00
348ca30333 re-add softprops release 2025-05-20 15:11:40 +02:00
Gitea CI
71f421a833 Bump version: 0.1.4 → 0.1.5 2025-05-20 12:05:26 +00:00
110888307c test hardcoded owner 2025-05-20 14:04:49 +02:00
Gitea CI
4267d1f9fd Bump version: 0.1.3 → 0.1.4 2025-05-20 12:03:15 +00:00
f1be200aae test specified user for release 2025-05-20 14:02:25 +02:00
0425009bbd Merge branch 'main' of https://git.theprivateserver.de/PHB/workflowbumptester 2025-05-20 14:01:14 +02:00
b4f215f42f update ci test 2025-05-20 14:01:00 +02:00
Gitea CI
bad48af5e2 Bump version: 0.1.2 → 0.1.3 2025-05-20 11:56:19 +00:00
e722901611 chore: include release in wf 2025-05-20 13:54:27 +02:00
e2b60f5f9e Merge branch 'main' of https://git.theprivateserver.de/PHB/workflowbumptester 2025-05-20 13:53:52 +02:00
542fc9f548 feat: update gitignore 2025-05-20 13:53:27 +02:00
Gitea CI
96129a369c Bump version: 0.1.1 → 0.1.2 2025-05-20 11:51:16 +00:00
13 changed files with 279 additions and 117 deletions

View File

@@ -1,22 +0,0 @@
[tool.bumpversion]
current_version = "0.1.1"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
ignore_missing_files = false
tag = true
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = false
commit = true
message = "Bump version: {current_version} → {new_version}"
commit_args = ""
setup_hooks = []
pre_commit_hooks = []
post_commit_hooks = []
[[tool.bumpversion.files]]
filename = ".version"

38
.chglog/CHANGELOG.tpl.md Executable file
View File

@@ -0,0 +1,38 @@
{{ range .Versions }}
<a name="{{ .Tag.Name }}"></a>
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})
{{ range .CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
* {{ .Subject }}
{{ end }}
{{ end -}}
{{- if .RevertCommits -}}
### Reverts
{{ range .RevertCommits -}}
* {{ .Revert.Header }}
{{ end }}
{{ end -}}
{{- if .MergeCommits -}}
### Pull Requests
{{ range .MergeCommits -}}
* {{ .Header }}
{{ end }}
{{ end -}}
{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}
{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

27
.chglog/config.yml Executable file
View File

@@ -0,0 +1,27 @@
style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://git.theprivateserver.de/PHB/workflowbumptester
options:
commits:
# filters:
# Type:
# - feat
# - fix
# - perf
# - refactor
commit_groups:
# title_maps:
# feat: Features
# fix: Bug Fixes
# perf: Performance Improvements
# refactor: Code Refactoring
header:
pattern: "^(\\w*)\\:\\s(.*)$"
pattern_maps:
- Type
- Subject
notes:
keywords:
- BREAKING CHANGE

View File

@@ -0,0 +1,36 @@
{
"categories": [
{
"title": "## 🚀 Features",
"labels": [
"add",
"Add",
"Kind/Feature"
]
},
{
"title": "## 🐛 Fixes",
"labels": [
"fix",
"Fix"
]
},
{
"title": "## 🧪 Upgrade",
"labels": ["upgrade","Upgrade","Clean"]
}
],
"label_extractor": [
{
"pattern": "(\\w+) (.+)",
"target": "$1",
"on_property": "title"
}
],
"sort": "ASC",
"template": "${{CHANGELOG}}",
"pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}",
"empty_template": "- no changes",
"max_pull_requests": 1000,
"max_back_track_time_days": 1000
}

9
.gitea/release_notes.yml Normal file
View File

@@ -0,0 +1,9 @@
changelog:
sections:
- title: ":star: New Features"
labels: ["Kind/Feature", "Kind/Enhancement"]
- title: ":lady_beetle: Bug Fixes"
labels: ["Kind/Bug", "Kind/Hotfix"]
issues:
exclude:
labels: ["wontfix", "question", "duplicate", "invalid"]

View File

@@ -1,17 +1,10 @@
name: Bump version
on:
release:
types: [published]
workflow_dispatch:
inputs:
bump-type:
description: 'Bump type'
required: true
default: 'patch'
type: choice
options:
- major
- minor
- patch
jobs:
build:
@@ -19,20 +12,59 @@ jobs:
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Set Git identity
- name: Setup git-chglog
run: |
git config user.name "Gitea CI"
git config user.email "ci@git.theprivateserver.de"
- name: Bump version
id: bump
uses: callowayproject/bump-my-version@master
env:
BUMPVERSION_TAG: "true"
with:
args: ${{ inputs.bump-type }}
github-token: ${{ secrets.TOKEN }}
CHGLOG_VERSION="0.15.4"
curl -o git-chglog -L "https://github.com/git-chglog/git-chglog/releases/download/${CHGLOG_VERSION}/git-chglog_linux_amd64"
chmod +x git-chglog
- name: Check
if: steps.bump.outputs.bumped == 'true'
- name: show structure
run: ls -la
- name: Generate CHANGELOG.md
id: generate
run: |
echo "Version was bumped from ${{ steps.bump.outputs.previous-version }} to ${{ steps.bump.outputs.current-version }}!"
rm -f CHANGELOG.md
./git-chglog -o CHANGELOG.md
if git diff --quiet CHANGELOG.md; then
echo "changes=false" >> $GITHUB_OUTPUT
else
echo "changes=true" >> $GITHUB_OUTPUT
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cleanup
run: rm git-chglog
if: always()
- name: Create Pull Request
if: steps.generate.outputs.changes == 'true'
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: update CHANGELOG.md"
title: "📝 Update Changelog"
body: |
This PR updates the CHANGELOG.md to include all releases.
- Generated using git-chglog
- Triggered by: ${{ github.event_name }}
- Auto-merge enabled
branch: update-changelog-${{ github.run_id }}
base: main
delete-branch: true
labels: documentation, automated-pr
- name: Enable Auto-merge
if: steps.generate.outputs.changes == 'true'
uses: pascalgn/automerge-action@v0.15.0
with:
mergeMethod: squash
token: ${{ secrets.GITHUB_TOKEN }}
pullRequestNumber: ${{ steps.create-pull-request.outputs.pullRequestNumber }}
commitMessage: "chore: update CHANGELOG.md"
title: "📝 Update Changelog"
body: |
This PR updates the CHANGELOG.md to include all releases.
- Generated using git-chglog
- Triggered by: ${{ github.event_name }}

View File

@@ -1,48 +1,23 @@
name: 'CI'
name: "Tests"
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
release:
if: startsWith(github.ref, 'refs/tags/')
tests:
runs-on: ubuntu-latest
steps:
- name: Build Changelog
uses: https://github.com/mikepenz/release-changelog-builder-action@v5
- name: Checkout the code
uses: actions/checkout@v4
- name: echo name
run: echo ${{ github.event.repository.owner.login }}
- name: Get milestone from tag
id: milestone-from-tag
run: |
milestone=0.1.7
echo "milestone=$milestone" >> $GITHUB_OUTPUT
echo $milestone
- name: Generate Changelog
uses: spring-io/github-changelog-generator@v0.0.12
with:
platform: "gitea" # gitea or GitHub, default is GitHub
mode: "COMMIT"
configurationJson: |
{
"template": "#{{CHANGELOG}}",
"categories": [
{
"title": "## Feature",
"labels": ["feat", "feature"]
},
{
"title": "## Fix",
"labels": ["fix", "bug"]
},
{
"title": "## Other",
"labels": []
}
],
"label_extractor": [
{
"pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)",
"on_property": "title",
"target": "$1"
}
]
}
token: ${{ secrets.TOKEN }}
- name: create Release
uses: softprops/action-gh-release@master
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ${{ steps.changelog.outputs.changelog }}
milestone: ${{ steps.milestone-from-tag.outputs.milestone }}

View File

@@ -1,10 +1,6 @@
on:
workflow_dispatch:
inputs:
release_notes:
description: Release notes (use \n for newlines)
type: string
required: false
github_release:
description: 'Create Gitea Release'
default: true
@@ -19,12 +15,18 @@ on:
- 'minor'
- 'patch'
jobs:
release:
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, 'release') || github.event_name == 'workflow_dispatch'"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch full history
fetch-tags: true # Fetch all tags (refs/tags)
- name: Install uv
uses: astral-sh/setup-uv@v5
@@ -34,7 +36,7 @@ jobs:
python-version-file: "pyproject.toml"
- name: Install the project
run: uv sync --locked --all-extras --dev
run: uv sync --all-extras --dev
- name: Set Git identity
run: |
git config user.name "Gitea CI"
@@ -43,35 +45,43 @@ jobs:
id: bump
run: |
uv tool install bump-my-version
uv tool run bump-my-version bump ${{ github.event.inputs.bump }} --allow-dirty
uv tool run bump-my-version bump ${{ github.event.inputs.bump }}
# echo the version to github env, the version is shown by using uv tool run bump-my-version show current_version
echo "VERSION<<EOF" >> $GITHUB_ENV
echo "$(uv tool run bump-my-version show current_version)" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Check version
run: echo ${{ env.VERSION }}
run: |
echo ${{ env.VERSION }}
cat pyproject.toml
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
# - name: Add release notes to environment
# id: add_release_notes
# run: |
# echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
# echo "${{ github.event.inputs.release_notes }}" >> $GITHUB_ENV
# echo "EOF" >> $GITHUB_ENV
# - name: Create release
# id: create_release
# if: ${{ github.event.inputs.github_release == 'true' }}
# uses: softprops/action-gh-release@master
# with:
# tag_name: ${{ env.VERSION }}
# release_name: Release ${{ env.VERSION }}
# body: ${{ env.RELEASE_NOTES }}
# draft: false
# prerelease: false
# make_latest: true
# env:
# GITHUB_TOKEN: ${{ secrets.TOKEN }}
- name: Build Changelog
id: build_changelog
uses: https://github.com/mikepenz/release-changelog-builder-action@v5
with:
platform: "gitea"
baseURL: "http://gitea:3000"
configuration: ".gitea/changelog-config.json"
env:
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
- name: Create release
id: create_release
if: ${{ github.event.inputs.github_release == 'true' }}
uses: softprops/action-gh-release@master
with:
tag_name: v${{ env.VERSION }}
release_name: Release ${{ env.VERSION }}
body: ${{steps.build_changelog.outputs.changelog}}
draft: false
prerelease: false
make_latest: true
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}

View File

@@ -0,0 +1,33 @@
on:
milestone:
types: [closed]
workflow_dispatch:
inputs:
milestoneId:
description: 'Milestone ID'
required: true
default: '1'
name: Milestone Closure
jobs:
create-release-notes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Generate changelog
id: changelog
uses: metcalfc/changelog-generator@3f82cef08fe5dcf57c591fe165e70e1d5032e15a # was: metcalfc/changelog-generator@v4.6.2
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
- name: Generate Sprint-io Changelog
uses: spring-io/github-changelog-generator@v0.0.12
with:
token: ${{ secrets.GITHUB_TOKEN }}
milestone: ${{ github.event.inputs.milestoneId }}
- name: Create Release
id: create_release
uses: ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 # was: ncipollo/release-action@v1
with:
tag: ${{ github.ref }}
name: Release ${{ github.ref_name }}
body: ${{ steps.changelog.outputs.changelog }}
token: ${{ secrets.GITHUB_TOKEN }}

1
.gitignore vendored
View File

@@ -230,3 +230,4 @@ config.yaml
.venv
venv
*.log
Wallpapers/

View File

@@ -1 +1 @@
0.1.1
0.1.27

View File

@@ -6,7 +6,8 @@ def main():
def get_version():
with open(".version") as f:
return f.read().strip()
print("Done")
if __name__ == "__main__":
main()
print("This script has been executed successfully.")

View File

@@ -1,6 +1,6 @@
[project]
name = "workflowbumptester"
version = "0.1.0"
version = "1.0.10"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
@@ -8,3 +8,25 @@ dependencies = [
"bump-my-version>=1.1.3",
"pyyaml>=6.0.2",
]
[tool.bumpversion]
current_version = "1.0.10"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
ignore_missing_files = false
tag = true
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = true
commit = true
message = "Bump version: {current_version} → {new_version}"
moveable_tags = []
commit_args = ""
setup_hooks = []
pre_commit_hooks = []
post_commit_hooks = []