Skip to content

Commit 8f806e6

Browse files
committed
Use shared branch list script
1 parent d36cc4a commit 8f806e6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

scripts/autorelease.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ git clone https://github.com/embeddedt/ModernFix mfix &>/dev/null
1919
cd mfix
2020

2121
# gather version list
22-
readarray -t all_versions < <(git ls-remote --heads origin | awk '{print $2}' | sed 's:.*/::' | sort -V)
22+
readarray -t all_versions < <(scripts/branchlist.sh)
2323

2424
last_released_version=""
2525
do_release() {

scripts/branchlist.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
git ls-remote --heads origin | awk '{print $2}' | sed 's:.*/::' | sort -V | grep -E '^1\.[0-9]*(\.[0-9]*)?$'

scripts/propagate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ git clone https://github.com/embeddedt/ModernFix mfix &>/dev/null
2020
cd mfix
2121

2222
# gather version list
23-
readarray -t all_versions < <(git ls-remote --heads origin | awk '{print $2}' | sed 's:.*/::' | sort -V)
23+
readarray -t all_versions < <(scripts/branchlist.sh)
2424
echo "found versions: ${all_versions[@]}"
2525

2626
# checkout base version

0 commit comments

Comments
 (0)