fix: update alpha workflow to correctly extract alpha logs from UPDATELOG.md

This commit is contained in:
Tunglies 2025-03-22 17:21:45 +08:00
parent 44f21444bb
commit 0830236a73

View File

@ -117,7 +117,8 @@ jobs:
# Check if UPDATELOG.md exists # Check if UPDATELOG.md exists
if [ -f "UPDATELOG.md" ]; then if [ -f "UPDATELOG.md" ]; then
# Extract the section starting with ## and containing -alpha until the next ## or end of file # Extract the section starting with ## and containing -alpha until the next ## or end of file
ALPHA_LOGS=$(awk '/^## .*-alpha/{flag=1; print; next} /^## /{flag=0} flag' UPDATELOG.md) # ALPHA_LOGS=$(awk '/^## .*-alpha/{flag=1; print; next} /^## /{flag=0} flag' UPDATELOG.md)
ALPHA_LOGS=$(awk '/^## v/{if(flag) exit; flag=1} flag' UPDATELOG.md)
if [ -n "$ALPHA_LOGS" ]; then if [ -n "$ALPHA_LOGS" ]; then
echo "Found alpha update logs" echo "Found alpha update logs"