What I'm trying to do is getting user's first name to be displayed ($GITLAB_USER_NAME variable stores users' names as: Lastname, Firstname, so e.g. Jones, Indiana):
deploy_to_server:
stage: deploy
when: manual
script:
- touch report.txt
- printf "Hello $($GITLAB_USER_NAME | awk '{ print $2 }').\n" >> report.txt
- cat report.txt
Any clue how to process the variable with awk so that it gives the desired output, Hello Indiana?