1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 11:38:30 -04:00

refactor(workflows): update release refs to stable in CI configurations

Port 1.5

(cherry picked from commit 406dcfe110)
This commit is contained in:
purian23
2026-07-12 15:23:04 -04:00
committed by dms-ci[bot]
parent 59d367f4a4
commit ee6c91e094
8 changed files with 25 additions and 24 deletions
+5 -5
View File
@@ -3,7 +3,7 @@
#
# Usage: port-audit.sh [<target-branch>] [--issue]
#
# Target defaults to the newest origin/release/* branch. --issue writes the
# Target defaults to the newest origin/stable-* branch. --issue writes the
# report to the "Port status: <target>" tracking issue body (needs gh auth).
set -euo pipefail
@@ -19,9 +19,9 @@ done
git fetch origin --quiet 2>/dev/null || true
if [ -z "$TARGET" ]; then
TARGET=$(git branch -r --list 'origin/release/*' --format='%(refname:short)' |
TARGET=$(git branch -r --list 'origin/stable-*' --format='%(refname:short)' |
sed 's|^origin/||' | sort -V | tail -1)
[ -n "$TARGET" ] || { echo "error: no origin/release/* branch found" >&2; exit 1; }
[ -n "$TARGET" ] || { echo "error: no origin/stable-* branch found" >&2; exit 1; }
fi
git rev-parse --verify "origin/${TARGET}" >/dev/null 2>&1 ||
{ echo "error: branch origin/${TARGET} not found" >&2; exit 1; }
@@ -42,8 +42,8 @@ flagged=""
fix_count=0
other_count=0
flagged_count=0
VER="${TARGET#release/}"
FLAG_RE="\\bport[-: /]+(release/)?${VER//./\\.}\\b"
VER="${TARGET#stable-}"
FLAG_RE="\\bport[-: /]+(stable-)?${VER//./\\.}\\b"
while read -r mark sha; do
[ "$mark" = "+" ] || continue
[ -n "${PORTED[$sha]:-}" ] && continue
+2 -1
View File
@@ -50,7 +50,8 @@ report_conflict() {
local sha="$1" short subject branch issue
short=$(git rev-parse --short "$sha")
subject=$(git log -1 --format=%s "$sha")
branch="port/${short}-${TARGET#release/}"
local ver="${TARGET#stable-}"
branch="port/${short}-${ver}"
git push origin "refs/remotes/origin/${TARGET}:refs/heads/${branch}" 2>/dev/null ||
log "conflict branch ${branch} already exists"
issue=$(tracking_issue)