I have a yml
bitbucket pipeline where I would like to auto commit a message containing #
and :
I am doing :
- git commit -m "[skip ci] $ISSUE #comment Link : $LINK"
The issue is the pipeline don't run cause it consider #
to be a comment.
I tried to escape it using
- git commit -m |-
"[skip ci] $ISSUE #comment Link : $LINK"
or
- git commit -m |-
"[skip ci] $ISSUE '#'comment Link ':' $LINK"
but they dont work as expected
I am expecting a commit message like
"[skip ci] UI-12 #comment Link : www.test.com/123"
What I get is either
bash: opt/atlassian/pipelines/agent/tmp/bashScript17301903987873752811.sh: line 23: unexpected EOF while looking for matching
or the '
remaining
How can I achieve this ?