Skip to content

Commit

Permalink
ci: update the cherry-pick branch policy (#12971)
Browse files Browse the repository at this point in the history
* ci: update the cherry-pick branch policy in release branch fix

* ci: update
  • Loading branch information
wenytang-ms authored Dec 25, 2024
1 parent c06e114 commit f58bb51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ jobs:
run: |
# 找出版本号最大的 release 分支,分为两类:
# 1. release/NUM 或 release/NUM.NUM 格式
LATEST_NUM_RELEASE=$(git branch -r | grep -E '^ origin/release/[0-9]+(\.[0-9]+)?$' | sed 's/origin\///' | sort -t'/' -k2 -V | tail -n1)
LATEST_NUM_RELEASE=$(git branch -r | grep -Eo 'release/[0-9]+\.[0-9]+(\.[0-9]+)?' | sort -t/ -k2 -V | tail -n1)
# 2. release/VSNUMPNUM 格式
LATEST_VS_RELEASE=$(git branch -r | grep -E '^ origin/release/VS[0-9]+P[0-9]+$' | sed 's/origin\///' | sort -t'/' -k2 -V | tail -n1)
LATEST_VS_RELEASE=$(git branch -r | grep -E '^ origin/release/[Vv][Ss][0-9]+[Pp][0-9]+$' | tr '[:upper:]' '[:lower:]' | sed 's/origin\///' | sort -t'/' -k2 -V | tail -n1)
echo "latest_vsc_release=$LATEST_NUM_RELEASE" >> $GITHUB_OUTPUT
echo "latest_vs_release=$LATEST_VS_RELEASE" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit f58bb51

Please sign in to comment.