CI/CD in Custom App

How to add bench migrate and bench restart command in github action’s .yml file?
My bench restart shows an error.

Can anyone help me please?