bugfix:
Gitea Action for docker build runtime / gitea-action-test (push) Successful in 10s Details

This commit is contained in:
chenwj113 2024-05-30 09:44:42 +08:00
parent 30df3c716b
commit 372b37617c
1 changed files with 3 additions and 6 deletions

View File

@ -11,14 +11,11 @@ jobs:
- run: |
commit_msg=${{ github.event.head_commit.message }}
version=v1.0.0
if [[ commit_msg == v* ]]
then
if [[ commit_msg == v* ]]; then
version=$(echo $version | sed 's/\"//g' | awk -F"." '{$1=$1+1;$2=0;$3=0}1' OFS=".")
elif [[ commit_msg == feat* ]]
then
elif [[ commit_msg == feat* ]]; then
version=$(echo $version | sed 's/\"//g' | awk -F"." '{$2=$2+1}1' OFS="." )
elif [[ commit_msg == fix* ]]
then
elif [[ commit_msg == fix* ]]; then
version=$(echo $version | sed 's/\"//g' | awk -F"." '{$3=$3+1}1' OFS="." )
else
version=$(echo $version | sed 's/\"//g' | awk -F"." '{$3=$3+1}1' OFS=".")