From 6a5fa4223910dc5281d3ce9371cb6afbd0f5029e Mon Sep 17 00:00:00 2001 From: Ralf Kirchner Date: Thu, 29 May 2025 14:30:31 +0200 Subject: [PATCH] fix(autopost): Script angepasst --- autopost.sh | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/autopost.sh b/autopost.sh index 0270376..041bbb4 100755 --- a/autopost.sh +++ b/autopost.sh @@ -24,16 +24,31 @@ 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 +#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($random_string): Auto-Update Zufallsstring $random_string" +# 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 + # Tag erstellen und pushen git tag "$new_tag" git push origin "$new_tag"