action-commit-to-branch icon indicating copy to clipboard operation
action-commit-to-branch copied to clipboard

How to execute bash command in commit_message

Open hisham-zadfresh opened this issue 4 years ago • 0 comments

@dereksmart I want my commit message to contain a bash script to get a value from a file, is it doable?

Something like this

- name: Push to staging branch
   uses: Automattic/action-commit-to-branch@master
   with:
     branch: 'staging'
     commit_message: ${ echo "Increase version to $(sed -rn 's/^version=([^\n]+)$/\1/p' file.properties)"}

hisham-zadfresh avatar Dec 25 '20 19:12 hisham-zadfresh