35 Commits

Author SHA1 Message Date
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
9 changed files with 200 additions and 73 deletions

View File

@@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "0.1.10"
current_version = "0.1.19"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_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,29 @@
{
"categories": [
{
"title": "## 🚀 Features",
"labels": ["add","Add"]
},
{
"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

@@ -24,6 +24,7 @@ on:
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
@@ -57,19 +58,15 @@ jobs:
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: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v2
with:
platform: "gitea"
configuration: ".gitea/changelog-config.json"
token: ${{ secrets.TOKEN }}
tag: ${{ github.ref_name }}
- name: Create release
id: create_release
@@ -78,7 +75,7 @@ jobs:
with:
tag_name: ${{ env.VERSION }}
release_name: Release ${{ env.VERSION }}
body: ${{ steps.changelog.outputs.changes }}
body: ${{steps.build_changelog.outputs.changelog}}
draft: false
prerelease: false
make_latest: true

View File

@@ -1,38 +1,33 @@
name: Deploy
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
on:
milestone:
types: [closed]
workflow_dispatch:
inputs:
milestoneId:
description: 'Milestone ID'
required: true
default: '1'
name: Milestone Closure
jobs:
deploy:
create-release-notes:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ secrets.TOKEN }}
tag: ${{ github.ref_name }}
- name: Create Release
uses: ncipollo/release-action@v1.12.0
with:
allowUpdates: true
draft: false
makeLatest: true
name: ${{ github.ref_name }}
body: ${{ steps.changelog.outputs.changes }}
token: ${{ secrets.TOKEN }}
- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md
- 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 }}

View File

@@ -1 +1 @@
0.1.10
0.1.19