bugfix: 修复cicd文件错误
Gitea Action for docker build runtime / gitea-action-test (push) Failing after 10s
Details
Gitea Action for docker build runtime / gitea-action-test (push) Failing after 10s
Details
This commit is contained in:
parent
f7bb617e7d
commit
30df3c716b
|
|
@ -11,13 +11,16 @@ 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="." )
|
||||
elif [[ commit_msg == bugfix* ]] then;
|
||||
else
|
||||
version=$(echo $version | sed 's/\"//g' | awk -F"." '{$3=$3+1}1' OFS=".")
|
||||
fi
|
||||
echo $version
|
||||
|
|
|
|||
Loading…
Reference in New Issue