Skip to content

Commit 63deb85

Browse files
authored
Merge pull request #1 from bitrise-io/fix/auto-patch-oldest-first
Patch upstream tags oldest-first in auto-patch workflow
2 parents fddafe7 + a6b352e commit 63deb85

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/auto-patch-upstream.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ jobs:
3939
# Minimum upstream version to process — older tags are ignored
4040
MIN_TAG="v2.328.0"
4141
42-
# Collect upstream v* tags >= MIN_TAG, newest first
42+
# Collect upstream v* tags >= MIN_TAG, oldest first so a backlog is drained
43+
# in ascending order — the last patched branch (which the deployment repo
44+
# picks up as default via Bitrise CI) is always the newest tag.
4345
UPSTREAM_TAGS=$(git tag -l 'upstream/v*' | sed 's|^upstream/||' | while read -r TAG; do
4446
if [ "$(printf '%s\n%s\n' "$MIN_TAG" "$TAG" | sort -V | head -n1)" = "$MIN_TAG" ]; then
4547
echo "$TAG"
4648
fi
47-
done | sort -rV)
49+
done | sort -V)
4850
4951
MAX_PATCHES=1
5052
PATCHED=0

0 commit comments

Comments
 (0)