Compare commits
50 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
208356f9db
|
|||
|
95e5b61607
|
|||
|
ac1428a65e
|
|||
|
4a7553b68e
|
|||
|
faee4ab40f
|
|||
|
ce70420ce7
|
|||
|
bd1409e77b
|
|||
|
2de3086819
|
|||
|
61d7b1d8f7
|
|||
|
1d9e63a84c
|
|||
|
aedf49b0f3
|
|||
|
606aeb20d3
|
|||
|
8b9a94e28f
|
|||
|
11f252fb12
|
|||
|
3b5ebf6c27
|
|||
|
776f01a672
|
|||
|
eaebf686eb
|
|||
|
83b84d2687
|
|||
|
66b3b03290
|
|||
|
9e65f48123
|
|||
|
bd101f9e0a
|
|||
|
6a5fa42239
|
|||
|
b4a1f798bd
|
|||
|
e4be7f6516
|
|||
|
27118d5826
|
|||
| 3ea9d963b0 | |||
|
e945d38418
|
|||
|
013c0cdd88
|
|||
|
04e175dfb8
|
|||
| 30e3f59a11 | |||
|
2c25474f2e
|
|||
|
874a37f269
|
|||
|
ae9ccbf83e
|
|||
| a3ac272787 | |||
|
f3a00ccb1c
|
|||
|
87e2078b3c
|
|||
|
da8d686357
|
|||
| 4ea1898232 | |||
|
5b2472a391
|
|||
|
6505bf3bd5
|
|||
|
b02c906a79
|
|||
| 0922ad361e | |||
|
6a5b1d13a8
|
|||
|
9d12dee06b
|
|||
|
4ea8a21ad4
|
|||
| 5d87f69603 | |||
|
0fd17eaddb
|
|||
|
dbbef44530
|
|||
|
ded9df64b1
|
|||
| ce1d145b49 |
@@ -1,42 +1,38 @@
|
|||||||
{{ range .Versions }}
|
{{ with index .Versions 0 }}
|
||||||
<a name="{{ .Tag.Name }}"></a>
|
<a name="{{ .Tag.Name }}"></a>
|
||||||
## BlueMastoFeed {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
|
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})
|
||||||
|
|
||||||
{{ if .CommitGroups }}
|
{{ range .CommitGroups -}}
|
||||||
### Changes
|
### {{ .Title }}
|
||||||
|
|
||||||
{{ range .CommitGroups }}
|
{{ range .Commits -}}
|
||||||
#### {{ .Title }}
|
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
|
||||||
{{ range .Commits }}
|
|
||||||
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
{{ if .MergeCommits }}
|
{{- if .RevertCommits -}}
|
||||||
### Pull Requests
|
|
||||||
|
|
||||||
{{ range .MergeCommits }}
|
|
||||||
- {{ .Header }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ if .RevertCommits }}
|
|
||||||
### Reverts
|
### Reverts
|
||||||
|
|
||||||
{{ range .RevertCommits }}
|
{{ range .RevertCommits -}}
|
||||||
- {{ .Revert.Header }}
|
* {{ .Revert.Header }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
|
{{- if .MergeCommits -}}
|
||||||
|
### Pull Requests
|
||||||
|
|
||||||
|
{{ range .MergeCommits -}}
|
||||||
|
* {{ .Header }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
{{ if .NoteGroups }}
|
{{- if .NoteGroups -}}
|
||||||
### Notes
|
{{ range .NoteGroups -}}
|
||||||
|
### {{ .Title }}
|
||||||
|
|
||||||
{{ range .NoteGroups }}
|
|
||||||
#### {{ .Title }}
|
|
||||||
{{ range .Notes }}
|
{{ range .Notes }}
|
||||||
- {{ .Body }}
|
{{ .Body }}
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end -}}
|
||||||
|
{{ end -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: Create Release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*' # Nur bei Tags wie v1.0.0
|
- 'v*' # Nur bei Tags wie v1.0.0, v2.0.0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -13,8 +13,11 @@ jobs:
|
|||||||
- name: Enable debug output
|
- name: Enable debug output
|
||||||
run: set -x
|
run: set -x
|
||||||
|
|
||||||
- name: Checkout source
|
- name: Checkout full history including tags
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
fetch-tags: true
|
||||||
|
|
||||||
- name: Show environment variables for debugging
|
- name: Show environment variables for debugging
|
||||||
run: |
|
run: |
|
||||||
@@ -25,11 +28,8 @@ jobs:
|
|||||||
id: repo-info
|
id: repo-info
|
||||||
run: |
|
run: |
|
||||||
REMOTE_URL=$(git config --get remote.origin.url)
|
REMOTE_URL=$(git config --get remote.origin.url)
|
||||||
echo "Remote URL: $REMOTE_URL"
|
|
||||||
|
|
||||||
OWNER=$(echo "$REMOTE_URL" | sed -E 's#.*/([^/]+)/([^/]+)(\.git)?#\1#')
|
OWNER=$(echo "$REMOTE_URL" | sed -E 's#.*/([^/]+)/([^/]+)(\.git)?#\1#')
|
||||||
REPO=$(echo "$REMOTE_URL" | sed -E 's#.*/([^/]+)/([^/]+)(\.git)?#\2#')
|
REPO=$(echo "$REMOTE_URL" | sed -E 's#.*/([^/]+)/([^/]+)(\.git)?#\2#')
|
||||||
|
|
||||||
echo "OWNER=$OWNER" >> $GITHUB_ENV
|
echo "OWNER=$OWNER" >> $GITHUB_ENV
|
||||||
echo "REPO=$REPO" >> $GITHUB_ENV
|
echo "REPO=$REPO" >> $GITHUB_ENV
|
||||||
|
|
||||||
@@ -41,24 +41,24 @@ jobs:
|
|||||||
chmod +x git-chglog
|
chmod +x git-chglog
|
||||||
sudo mv git-chglog /usr/local/bin/
|
sudo mv git-chglog /usr/local/bin/
|
||||||
|
|
||||||
- name: Show git-chglog version
|
- name: Determine current and previous tag
|
||||||
run: git-chglog --version
|
|
||||||
|
|
||||||
- name: Determine previous tag
|
|
||||||
id: tags
|
id: tags
|
||||||
run: |
|
run: |
|
||||||
CURRENT_TAG="${GITHUB_REF##*/}"
|
CURRENT_TAG="${GITHUB_REF##*/}"
|
||||||
PREVIOUS_TAG=$(git tag --sort=-creatordate | grep -v "$CURRENT_TAG" | tail -n1 || true)
|
PREVIOUS_TAG=$(git describe --tags --abbrev=0 "${CURRENT_TAG}^" 2>/dev/null || true)
|
||||||
|
|
||||||
|
echo "CURRENT_TAG=$CURRENT_TAG"
|
||||||
|
echo "PREVIOUS_TAG=$PREVIOUS_TAG"
|
||||||
|
|
||||||
echo "CURRENT_TAG=$CURRENT_TAG" >> $GITHUB_ENV
|
echo "CURRENT_TAG=$CURRENT_TAG" >> $GITHUB_ENV
|
||||||
echo "PREVIOUS_TAG=$PREVIOUS_TAG" >> $GITHUB_ENV
|
echo "PREVIOUS_TAG=$PREVIOUS_TAG" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Generate CHANGELOGs
|
- name: Generate CHANGELOG.md
|
||||||
run: |
|
run: |
|
||||||
# Vollständiger Changelog
|
# Optional: kompletter Changelog (nicht für Release-Body)
|
||||||
git-chglog -o CHANGELOG.md
|
git-chglog -o CHANGELOG.md
|
||||||
|
|
||||||
# Nur aktueller Abschnitt
|
# Nur der relevante Abschnitt zwischen Tags
|
||||||
if [ -n "$PREVIOUS_TAG" ]; then
|
if [ -n "$PREVIOUS_TAG" ]; then
|
||||||
git-chglog "$PREVIOUS_TAG..$CURRENT_TAG" > RELEASE_BODY.md
|
git-chglog "$PREVIOUS_TAG..$CURRENT_TAG" > RELEASE_BODY.md
|
||||||
else
|
else
|
||||||
@@ -68,13 +68,14 @@ jobs:
|
|||||||
echo "Release changelog content:"
|
echo "Release changelog content:"
|
||||||
cat RELEASE_BODY.md
|
cat RELEASE_BODY.md
|
||||||
|
|
||||||
- name: Create Gitea Release via API (Markdown-safe)
|
- name: Create Gitea Release via API
|
||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.TOKEN }}
|
TOKEN: ${{ secrets.TOKEN }}
|
||||||
OWNER: ${{ env.OWNER }}
|
OWNER: ${{ env.OWNER }}
|
||||||
REPO: ${{ env.REPO }}
|
REPO: ${{ env.REPO }}
|
||||||
CURRENT_TAG: ${{ env.CURRENT_TAG }}
|
CURRENT_TAG: ${{ env.CURRENT_TAG }}
|
||||||
run: |
|
run: |
|
||||||
|
# Base64-encode und sicher escapen für JSON
|
||||||
BODY=$(base64 -w0 RELEASE_BODY.md)
|
BODY=$(base64 -w0 RELEASE_BODY.md)
|
||||||
DECODED_BODY=$(echo "$BODY" | base64 -d | jq -Rs .)
|
DECODED_BODY=$(echo "$BODY" | base64 -d | jq -Rs .)
|
||||||
|
|
||||||
|
|||||||
42
README.md
42
README.md
@@ -18,3 +18,45 @@ dLlIj2EY
|
|||||||
tR0o43E3
|
tR0o43E3
|
||||||
7eNev7oo
|
7eNev7oo
|
||||||
x3Gpbeek
|
x3Gpbeek
|
||||||
|
kLtteV0j
|
||||||
|
VUKfUEJZ
|
||||||
|
ikA2H9a3
|
||||||
|
e3RCS218
|
||||||
|
XXFRCMIz
|
||||||
|
J5seL5Zg
|
||||||
|
fTe39pUu
|
||||||
|
cDZc6Ibn
|
||||||
|
Ifv2JztG
|
||||||
|
Lw7O38L4
|
||||||
|
ewY0zmF6
|
||||||
|
um3vnKHA
|
||||||
|
XBHbBQLK
|
||||||
|
pmkxkEqY
|
||||||
|
SnrTGYfO
|
||||||
|
st63VH3N
|
||||||
|
fplShaNq
|
||||||
|
DYDaz9Tr
|
||||||
|
8msBEIxm
|
||||||
|
mxNdbHzm
|
||||||
|
FUlNIQKk
|
||||||
|
nfMmqgR2
|
||||||
|
hT0eHTsv
|
||||||
|
VOfcmwh4
|
||||||
|
NSpeZu7J
|
||||||
|
UVjx6TQj
|
||||||
|
l8Hgk0XW
|
||||||
|
w12pw7xZ
|
||||||
|
SSgqTQLE
|
||||||
|
JCh80wIn
|
||||||
|
TDEZGpBC
|
||||||
|
YHCfK5DV
|
||||||
|
KexTNSMP
|
||||||
|
RkvODk4K
|
||||||
|
861uEy6f
|
||||||
|
5JMWa9i3
|
||||||
|
ThZEYUjn
|
||||||
|
Ijvpwkek
|
||||||
|
33ibipFg
|
||||||
|
11sK5cBR
|
||||||
|
LRyWVE5y
|
||||||
|
mE9aBNXB
|
||||||
|
|||||||
31
autopost.sh
31
autopost.sh
@@ -24,16 +24,31 @@ fi
|
|||||||
new_tag="v${new_major}.0.0"
|
new_tag="v${new_major}.0.0"
|
||||||
|
|
||||||
# Drei zufällige Änderungen durchführen
|
# Drei zufällige Änderungen durchführen
|
||||||
for i in {1..3}; do
|
#for i in {1..3}; do
|
||||||
random_string=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8)
|
# random_string=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8)
|
||||||
echo "Zufallsstring $i: $random_string"
|
# echo "Zufallsstring $i: $random_string"
|
||||||
echo "$random_string" >> "$README_FILE"
|
# echo "$random_string" >> "$README_FILE"
|
||||||
|
#
|
||||||
git add "$README_FILE"
|
# git add "$README_FILE"
|
||||||
git commit -m "feat($i): Auto-Update $i: Zufallsstring $random_string"
|
# git commit -m "feat($random_string): Auto-Update Zufallsstring $random_string"
|
||||||
git push
|
# git push
|
||||||
|
#done
|
||||||
|
|
||||||
|
TYPES=(chore docs feat fix refactor style test)
|
||||||
|
|
||||||
|
for type in "${TYPES[@]}"; do
|
||||||
|
for i in {1..3}; do
|
||||||
|
random_string=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8)
|
||||||
|
echo "Zufallsstring $i für Typ '$type': $random_string"
|
||||||
|
echo "$random_string" >> "$README_FILE"
|
||||||
|
|
||||||
|
git add "$README_FILE"
|
||||||
|
git commit -m "$type($random_string): Auto-Update Zufallsstring $random_string"
|
||||||
|
git push
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# Tag erstellen und pushen
|
# Tag erstellen und pushen
|
||||||
git tag "$new_tag"
|
git tag "$new_tag"
|
||||||
git push origin "$new_tag"
|
git push origin "$new_tag"
|
||||||
|
|||||||
Reference in New Issue
Block a user