docs: add examples

This commit is contained in:
Florian Hönicke
2023-04-10 01:33:41 +02:00
parent 2767510dae
commit 8b41c80135
2 changed files with 4 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: main
token: ${{ secrets.JINA_DEV_BOT }}
fetch-depth: 100
- uses: actions/setup-python@v2
@@ -28,7 +29,7 @@ jobs:
JINA_SLACK_WEBHOOK: ${{ secrets.JINA_SLACK_WEBHOOK }}
- if: failure()
run: echo "nothing to release"
- name: bumping master version
- name: bumping main version
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.JINA_DEV_BOT }}

View File

@@ -76,7 +76,7 @@ if [[ $1 == "final" ]]; then
printf "this will be a final release: \e[1;33m$RELEASE_VER\e[0m\n"
NEXT_VER=$(echo $RELEASE_VER | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{$NF=sprintf("%0*d", length($NF), ($NF+1)); print}')
printf "bump master version to: \e[1;32m$NEXT_VER\e[0m\n"
printf "bump main version to: \e[1;32m$NEXT_VER\e[0m\n"
# make_release_note
@@ -92,7 +92,7 @@ elif [[ $1 == 'rc' ]]; then
DOT_RELEASE_VER=$(echo $RELEASE_VER | sed "s/rc/\./")
NEXT_VER=$(echo $DOT_RELEASE_VER | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{$NF=sprintf("%0*d", length($NF), ($NF+1)); print}')
NEXT_VER=$(echo $NEXT_VER | sed "s/\.\([^.]*\)$/rc\1/")
printf "bump master version to: \e[1;32m$NEXT_VER\e[0m, this will be the next version\n"
printf "bump main version to: \e[1;32m$NEXT_VER\e[0m, this will be the next version\n"
# make_release_note