gitea-action-test/.gitea/workflows/run.yaml
Workflow config file is invalid. Please check your config file: yaml: line 12: mapping values are not allowed in this context

27 lines
1.0 KiB
YAML

name: Gitea Action for docker build runtime
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
[push]
jobs:
gitea-action-test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: https://git.airpig.cn/checkout@v4
- 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="." )
else
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 }}."
- run: echo "Tag name from gitea.ref_name ${{ gitea.ref_name }}"