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