Compare commits

...

59 Commits

Author SHA1 Message Date
f3a00ccb1c feat(3): Auto-Update 3: Zufallsstring um3vnKHA
All checks were successful
Create Release / release (push) Successful in 9s
2025-05-29 14:05:02 +02:00
87e2078b3c feat(2): Auto-Update 2: Zufallsstring ewY0zmF6 2025-05-29 14:05:01 +02:00
da8d686357 feat(1): Auto-Update 1: Zufallsstring Lw7O38L4 2025-05-29 14:05:01 +02:00
4ea1898232 .gitea/workflows/release.yml aktualisiert 2025-05-29 14:04:51 +02:00
5b2472a391 feat(3): Auto-Update 3: Zufallsstring Ifv2JztG
All checks were successful
Create Release / release (push) Successful in 9s
2025-05-29 14:00:28 +02:00
6505bf3bd5 feat(2): Auto-Update 2: Zufallsstring cDZc6Ibn 2025-05-29 14:00:27 +02:00
b02c906a79 feat(1): Auto-Update 1: Zufallsstring fTe39pUu 2025-05-29 14:00:26 +02:00
0922ad361e .gitea/workflows/release.yml aktualisiert 2025-05-29 14:00:15 +02:00
6a5b1d13a8 feat(3): Auto-Update 3: Zufallsstring J5seL5Zg
All checks were successful
Create Release / release (push) Successful in 8s
2025-05-29 13:57:29 +02:00
9d12dee06b feat(2): Auto-Update 2: Zufallsstring XXFRCMIz 2025-05-29 13:57:28 +02:00
4ea8a21ad4 feat(1): Auto-Update 1: Zufallsstring e3RCS218 2025-05-29 13:57:22 +02:00
5d87f69603 .gitea/workflows/release.yml aktualisiert 2025-05-29 13:57:09 +02:00
0fd17eaddb feat(3): Auto-Update 3: Zufallsstring ikA2H9a3
All checks were successful
Create Release / release (push) Successful in 8s
2025-05-29 13:47:24 +02:00
dbbef44530 feat(2): Auto-Update 2: Zufallsstring VUKfUEJZ 2025-05-29 13:47:23 +02:00
ded9df64b1 feat(1): Auto-Update 1: Zufallsstring kLtteV0j 2025-05-29 13:47:17 +02:00
ce1d145b49 .chglog/CHANGELOG.tpl.md aktualisiert 2025-05-29 13:47:05 +02:00
108afd6b19 feat(3): Auto-Update 3: Zufallsstring x3Gpbeek
All checks were successful
Create Release / release (push) Successful in 9s
2025-05-29 13:41:55 +02:00
c65a5e8c15 feat(2): Auto-Update 2: Zufallsstring 7eNev7oo 2025-05-29 13:41:55 +02:00
ab22aaacb3 feat(1): Auto-Update 1: Zufallsstring tR0o43E3 2025-05-29 13:41:54 +02:00
0ebe97a116 fix(autopost): Script angepasst 2025-05-29 13:41:34 +02:00
87b5548690 feat(autopost): Script für autmatisierung 2025-05-29 13:40:03 +02:00
31c1e92935 feat(test8): test 8
All checks were successful
Create Release / release (push) Successful in 8s
2025-05-29 12:58:35 +02:00
d771a60b9e Merge branch 'main' of https://dev.ksite.de/ralf.kirchner/demo 2025-05-29 12:56:59 +02:00
943015b0a1 feat(test6): test 6 2025-05-29 12:54:47 +02:00
c59a710352 .gitea/workflows/release.yml aktualisiert 2025-05-29 12:53:48 +02:00
94eb4f63cb feat(test5): test
All checks were successful
Create Release / release (push) Successful in 7s
2025-05-29 12:46:00 +02:00
2ddb1fd386 feat(test4): test 4 2025-05-29 12:44:50 +02:00
285811d18d .gitea/workflows/release.yml aktualisiert
All checks were successful
Create Release / release (push) Successful in 8s
2025-05-29 12:37:10 +02:00
3feaaff790 .gitea/workflows/release.yml aktualisiert 2025-05-29 12:36:32 +02:00
406fe1185b .gitea/workflows/release.yml aktualisiert
All checks were successful
Create Release / release (push) Successful in 7s
2025-05-29 12:30:57 +02:00
c1acb90180 .gitea/workflows/release.yml aktualisiert
Some checks failed
Create Release / release (push) Failing after 8s
2025-05-29 12:29:38 +02:00
8f88f5ac4c .gitea/workflows/release.yml aktualisiert
All checks were successful
Create Release / release (push) Successful in 8s
2025-05-29 12:23:46 +02:00
0391802f1b .gitea/workflows/release.yml aktualisiert
All checks were successful
Create Release / release (push) Successful in 8s
2025-05-29 12:19:23 +02:00
f642eb5b06 .gitea/workflows/release.yml aktualisiert
All checks were successful
Create Release / release (push) Successful in 7s
2025-05-29 12:11:29 +02:00
75f0bc3fef .gitea/workflows/release.yml aktualisiert
Some checks failed
Create Release / release (push) Failing after 9s
2025-05-29 12:10:08 +02:00
2cbfeaf6c1 .gitea/workflows/release.yml aktualisiert
All checks were successful
Create Release / release (push) Successful in 7s
2025-05-29 12:05:36 +02:00
22a2476194 .gitea/workflows/release.yml aktualisiert
All checks were successful
Create Release / release (push) Successful in 8s
2025-05-29 12:03:01 +02:00
342bb23a8a .gitea/workflows/release.yml aktualisiert
Some checks failed
Create Release / release (push) Failing after 8s
2025-05-29 11:57:38 +02:00
5d8e00c396 .gitea/workflows/release.yml aktualisiert
Some checks failed
Create Release / release (push) Failing after 10s
2025-05-29 11:53:51 +02:00
6d3d8da80c .gitea/workflows/release.yml aktualisiert
Some checks failed
Release / release (push) Failing after 1m21s
2025-05-29 11:48:29 +02:00
6b0c286749 feat(2): test1 hinzugefügt
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 11:18:09 +02:00
e8196f2e02 feat(1): test1 hinzugefügt 2025-05-29 11:17:31 +02:00
2383627b93 .chglog/CHANGELOG.tpl.md aktualisiert
All checks were successful
Build Changelog and Release / release (push) Successful in 6s
2025-05-29 11:15:59 +02:00
e17b15f9b8 .chglog/CHANGELOG.tpl.md aktualisiert
All checks were successful
Build Changelog and Release / release (push) Successful in 6s
2025-05-29 11:13:20 +02:00
c2829e51d2 feat(test1): test1 hinzugefügt
Some checks failed
Build Changelog and Release / release (push) Failing after 6s
2025-05-29 11:10:47 +02:00
697bed098c .chglog/CHANGELOG.tpl.md aktualisiert
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 11:08:06 +02:00
3bdc1064e4 .chglog/CHANGELOG.tpl.md aktualisiert
Some checks failed
Build Changelog and Release / release (push) Failing after 7s
2025-05-29 11:05:09 +02:00
674980cd67 .chglog/config.yml aktualisiert 2025-05-29 11:04:31 +02:00
ab724c7a4f UTF icons entfernt
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 10:52:05 +02:00
baf1dc59e3 utf packet entfernt 2025-05-29 10:51:34 +02:00
0125f02699 utf packet hinzugefügt
All checks were successful
Build Changelog and Release / release (push) Successful in 3m0s
2025-05-29 10:45:38 +02:00
a1328dc32e locale gen hinzugefügt
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 10:39:14 +02:00
733f16c90c lang geändert
All checks were successful
Build Changelog and Release / release (push) Successful in 10s
2025-05-29 10:34:50 +02:00
034b3208c6 icon
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 10:27:26 +02:00
623ef5dc12 demo
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 10:22:31 +02:00
4fc79db1c4 .chglog/CHANGELOG.tpl.md aktualisiert 2025-05-29 10:18:36 +02:00
08121dec64 ci(log): Login Funktion hinzugefügt
All checks were successful
Build Changelog and Release / release (push) Successful in 7s
2025-05-29 00:44:09 +02:00
f1e9fa1a0a fix(login): Login Funktion hinzugefügt
All checks were successful
Build Changelog and Release / release (push) Successful in 6s
2025-05-28 21:58:48 +02:00
9df008366e fix(build): Funktion hinzugefügt
All checks were successful
Build Changelog and Release / release (push) Successful in 4s
2025-05-28 21:24:28 +02:00
5 changed files with 160 additions and 37 deletions

View File

@ -1,28 +1,37 @@
style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://dev.ksite.de/ralf.kirchner/demo
options:
commits:
# filters:
# Type:
# - feat
# - fix
# - perf
# - refactor
sort_by: "date" # Optional, default is OK too
exclude_merge_commits: false
commit_groups:
# title_maps:
# feat: Features
# fix: Bug Fixes
# perf: Performance Improvements
# refactor: Code Refactoring
group_by: "Type"
title_maps:
feat: Features
fix: Bug Fixes
perf: Performance Improvements
refactor: Code Refactoring
docs: Documentation
chore: Maintenance
test: Tests
build: Build System
ci: Continuous Integration
style: Code Style
header:
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
pattern_maps:
- Type
- Scope
- Subject
notes:
keywords:
- BREAKING CHANGE
- BREAKING CHANGE
- DEPRECATED

View File

@ -1,44 +1,93 @@
name: Build Changelog and Release
name: Create Release
on:
push:
tags:
- 'v*.*.*'
- 'v*' # Nur bei Tags wie v1.0.0, v2.0.0
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Enable debug output
run: set -x
- name: Install git-chglog
- name: Checkout full history including tags
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true
- name: Show environment variables for debugging
run: |
curl -sSL https://github.com/git-chglog/git-chglog/releases/download/v0.15.1/git-chglog_0.15.1_linux_amd64.tar.gz | tar -xz
echo "GIT_REMOTE_URL=$(git config --get remote.origin.url)"
echo "GITHUB_REF=$GITHUB_REF"
- name: Extract OWNER and REPO from git remote URL
id: repo-info
run: |
REMOTE_URL=$(git config --get remote.origin.url)
OWNER=$(echo "$REMOTE_URL" | sed -E 's#.*/([^/]+)/([^/]+)(\.git)?#\1#')
REPO=$(echo "$REMOTE_URL" | sed -E 's#.*/([^/]+)/([^/]+)(\.git)?#\2#')
echo "OWNER=$OWNER" >> $GITHUB_ENV
echo "REPO=$REPO" >> $GITHUB_ENV
- name: Install git-chglog binary (no Go needed)
run: |
GIT_CHGLOG_VERSION="0.15.1"
curl -sSL "https://github.com/git-chglog/git-chglog/releases/download/v${GIT_CHGLOG_VERSION}/git-chglog_${GIT_CHGLOG_VERSION}_linux_amd64.tar.gz" -o git-chglog.tar.gz
tar -xzf git-chglog.tar.gz
chmod +x git-chglog
sudo mv git-chglog /usr/local/bin/
- name: Generate changelog
- name: Determine current and previous tag
id: tags
run: |
git-chglog $(git describe --tags --abbrev=0) > RELEASE_NOTES.md
CURRENT_TAG="${GITHUB_REF##*/}"
PREVIOUS_TAG=$(git describe --tags --abbrev=0 "${CURRENT_TAG}^" 2>/dev/null || true)
- name: Create Release on Gitea
echo "CURRENT_TAG=$CURRENT_TAG"
echo "PREVIOUS_TAG=$PREVIOUS_TAG"
echo "CURRENT_TAG=$CURRENT_TAG" >> $GITHUB_ENV
echo "PREVIOUS_TAG=$PREVIOUS_TAG" >> $GITHUB_ENV
- name: Generate CHANGELOG.md
run: |
# Optional: kompletter Changelog (nicht für Release-Body)
git-chglog -o CHANGELOG.md
# Nur der relevante Abschnitt zwischen Tags
if [ -n "$PREVIOUS_TAG" ]; then
git-chglog "$PREVIOUS_TAG..$CURRENT_TAG" > RELEASE_BODY.md
else
git-chglog "$CURRENT_TAG" > RELEASE_BODY.md
fi
echo "Release changelog content:"
cat RELEASE_BODY.md
- name: Create Gitea Release via API
env:
GITEA_TOKEN: ${{ secrets.TOKEN }}
TOKEN: ${{ secrets.TOKEN }}
OWNER: ${{ env.OWNER }}
REPO: ${{ env.REPO }}
CURRENT_TAG: ${{ env.CURRENT_TAG }}
run: |
TAG=$(git describe --tags)
REPO=${GITEA_REPOSITORY#*/}
OWNER=${GITEA_REPOSITORY%/*}
BODY=$(cat RELEASE_NOTES.md | jq -Rs .)
# Base64-encode und sicher escapen für JSON
BODY=$(base64 -w0 RELEASE_BODY.md)
DECODED_BODY=$(echo "$BODY" | base64 -d | jq -Rs .)
curl -X POST "https://dev.ksite.de/api/v1/repos/ralf.kirchner/demo/releases" \
-H "Authorization: token $GITEA_TOKEN" \
echo "Creating release for tag $CURRENT_TAG"
curl -s -X POST "https://dev.ksite.de/api/v1/repos/${OWNER}/${REPO}/releases" \
-H "Content-Type: application/json" \
-d "{
\"tag_name\": \"$TAG\",
\"name\": \"$TAG\",
\"body\": $BODY,
\"draft\": false,
\"prerelease\": false
}"
-H "Authorization: token $TOKEN" \
-d @- <<EOF
{
"tag_name": "${CURRENT_TAG}",
"name": "${CURRENT_TAG}",
"body": ${DECODED_BODY}
}
EOF

View File

@ -3,9 +3,30 @@
## Test
Das ist ein Test
Test 01
test 02
Test 03
Test 04
Test 05
Test 06
Test 07
dLlIj2EY
tR0o43E3
7eNev7oo
x3Gpbeek
kLtteV0j
VUKfUEJZ
ikA2H9a3
e3RCS218
XXFRCMIz
J5seL5Zg
fTe39pUu
cDZc6Ibn
Ifv2JztG
Lw7O38L4
ewY0zmF6
um3vnKHA

41
autopost.sh Executable file
View File

@ -0,0 +1,41 @@
#!/bin/bash
set -e
# Sicherstellen, dass wir uns in einem Git-Repo befinden
if ! git rev-parse --is-inside-work-tree &>/dev/null; then
echo "Dieses Skript muss in einem Git-Repository ausgeführt werden."
exit 1
fi
README_FILE="README.md"
# Aktuelles höchstes semver-Tag im Format vX.Y.Z finden
latest_tag=$(git tag | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -n 1)
if [[ $latest_tag =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
major=${BASH_REMATCH[1]}
# Version erhöhen (nur Major erhöhen, Minor & Patch = 0)
new_major=$((major + 1))
else
new_major=1
fi
new_tag="v${new_major}.0.0"
# Drei zufällige Änderungen durchführen
for i in {1..3}; do
random_string=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8)
echo "Zufallsstring $i: $random_string"
echo "$random_string" >> "$README_FILE"
git add "$README_FILE"
git commit -m "feat($i): Auto-Update $i: Zufallsstring $random_string"
git push
done
# Tag erstellen und pushen
git tag "$new_tag"
git push origin "$new_tag"
echo "Fertig! Neues semver-Tag erstellt: $new_tag"

3
test1.txt Normal file
View File

@ -0,0 +1,3 @@
1
2