Summary
I'll try parse with regexp name of branch and create tag with version based on result vars
Actual behavior
$ chmod 644 ~/.ssh/known_hosts
$ echo $CI_COMMIT_REF_NAME | awk '{match($0,/([0-9])+.([0-9])+.([0-9])+(-[a-zA-Z0-9]+)?/,a);print a[1],a[2],a[3],a[4]}'
awk: line 1: syntax error at or near ,
ERROR: Job failed: exit code 1
Expected behavior
Branch name is
release-1.1.0-a
Expected
$ CI_COMMIT_REF_NAME=release-1.1.0
$ echo $CI_COMMIT_REF_NAME | awk '{match($1,/^(.*)([0-9])+.([0-9])+.([0-9])+(-[a-zA-Z0-9]+)?$/,a);print a[2],a[3],a[4],a[5]}'
Environment description
I'm run gitlab ce self-hosted with own runners