Skip to content

Commit

Permalink
Merge pull request spidernet-io#3432 from ty-dc/ignore-rc
Browse files Browse the repository at this point in the history
fix: Ignore rc version when updating readme
  • Loading branch information
weizhoublue authored Apr 30, 2024
2 parents 619f8e8 + 850b76b commit 97f8e1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/call-release-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ jobs:
- name: update release version of readme
run: |
echo "update release version of readme"
if ! grep -E "^v[0-9]+.[0-9]+.[0-9]+$" <<< ${{ env.REF }} ; then
echo "rc version:${{ env.REF }} skips updating README file"
echo "SKIP=true" >> $GITHUB_ENV
exit 0
fi
branchName=` grep -Eo "v[0-9]+\.[0-9]+" <<< ${{ env.REF }} `
if [ -n "${branchName}" ]; then
echo "the branch obtained from the version number is: ${branchName}"
Expand Down

0 comments on commit 97f8e1b

Please sign in to comment.