Skip to content

Commit

Permalink
[CI] Add support list in release notes body
Browse files Browse the repository at this point in the history
Signed-off-by: panyintian.fu <[email protected]>
  • Loading branch information
panyintian.fu committed Nov 18, 2024
1 parent f573985 commit 43a649d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-pr-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
permissions:
packages: write
contents: read
steps:
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/call-gen-release-notes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ jobs:
latest_tag=${GITHUB_REF#refs/*/}
bash ./hack/autoversion.sh ${latest_tag}
- name: Add support list in release body
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body_path: docs/overrides/releases/${GITHUB_REF#refs/*/}.md



- name: Push release notes
id: push_directory
Expand Down
2 changes: 1 addition & 1 deletion hack/autoversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function get_k8s_version_range() {
echo "$range" | sed 's/-/<br\/> -/g'|sed ':a;N;$!ba;s/\n/ /g'| sed 's/<br\/> //'
else
# replace each - with &nbsp; , divide into one line, remove \n and remove the first &nbsp;
echo "$range" | sed 's/-/ \&nbsp\; /g'|sed ':a;N;$!ba;s/\n/ /g'| sed 's/ \&nbsp\; //'
echo "$range" | sed 's/-/\&nbsp\;/g'|sed ':a;N;$!ba;s/\n/ /g'| sed 's/\&nbsp\;//'
fi

}
Expand Down

0 comments on commit 43a649d

Please sign in to comment.