Skip to content

Commit b1bf96a

Browse files
build(ci): 说明回填覆盖全部版本tag
1 parent 6a5837c commit b1bf96a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ jobs:
165165
env:
166166
GH_TOKEN: ${{ github.token }}
167167
run: |
168-
for tag in v1.5.0 v1.5.1 v1.5.2 v1.5.3 v1.5.4 v1.6.0 v1.6.1 v1.6.2 v1.6.3 v1.6.4; do
168+
tags=$(gh api "repos/$GITHUB_REPOSITORY/tags?per_page=100" --paginate --jq '.[].name' | grep -E '^v[0-9]+(\.[0-9]+)+$' | sort -V)
169+
for tag in $tags; do
169170
version="${tag#v}"
170171
body=$(awk -v ver="[$version]" '
171172
index($0, "## " ver) == 1 { flag = 1; next }

0 commit comments

Comments
 (0)