fix(autopost): Script angepasst
This commit is contained in:
31
autopost.sh
31
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"
|
||||
|
||||
Reference in New Issue
Block a user