mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 03:03:46 +08:00
fix: update alpha workflow to correctly extract alpha logs from UPDATELOG.md
This commit is contained in:
parent
44f21444bb
commit
0830236a73
3
.github/workflows/alpha.yml
vendored
3
.github/workflows/alpha.yml
vendored
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user