fix:
Gitea Action for docker build runtime / gitea-action-test (push) Failing after 8s Details

This commit is contained in:
chenwj113 2024-05-29 18:58:41 +08:00
parent dfbf23924e
commit f7bb617e7d
1 changed files with 12 additions and 12 deletions

View File

@ -9,16 +9,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: |
commit_msg=${{ github.event.head_commit.message }}
version=v1.0.0
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;
version=$(echo $version | sed 's/\"//g' | awk -F"." '{$2=$2+1}1' OFS="." )
elif [[ commit_msg == fix* ]] then;
version=$(echo $version | sed 's/\"//g' | awk -F"." '{$3=$3+1}1' OFS="." )
elif [[ commit_msg == bugfix* ]] then;
version=$(echo $version | sed 's/\"//g' | awk -F"." '{$3=$3+1}1' OFS=".")
fi
echo $version
commit_msg=${{ github.event.head_commit.message }}
version=v1.0.0
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;
version=$(echo $version | sed 's/\"//g' | awk -F"." '{$2=$2+1}1' OFS="." )
elif [[ commit_msg == fix* ]] then;
version=$(echo $version | sed 's/\"//g' | awk -F"." '{$3=$3+1}1' OFS="." )
elif [[ commit_msg == bugfix* ]] then;
version=$(echo $version | sed 's/\"//g' | awk -F"." '{$3=$3+1}1' OFS=".")
fi
echo $version
- run: echo "This job's status is ${{ job.status }}."