fix(autopost): Script angepasst
This commit is contained in:
29
autopost.sh
29
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 commit -m "feat($random_string): Auto-Update Zufallsstring $random_string"
|
||||||
|
# git push
|
||||||
|
#done
|
||||||
|
|
||||||
git add "$README_FILE"
|
TYPES=(chore docs feat fix refactor style test)
|
||||||
git commit -m "feat($i): Auto-Update $i: Zufallsstring $random_string"
|
|
||||||
git push
|
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