Push To Repository
- Define
GH_USERandGH_EMAILin the repository secrets. - Create step in the job to configure Git credentials.
- name: Configure git credentialsuses: OleksiyRudenko/gha-git-credentials@v2-latestwith:name: "[ci] Brian Turchyn"email: "${{ secrets.GH_USER }}"actor: "b-turchyn"token: "${{ secrets.GITHUB_TOKEN }}"
- Set Git config with name and email, then run the push in the same step.
- name: Build and Deployrun: |git config --global user.email "${{ secrets.GH_EMAIL }}"git config --global user.name "${{ secrets.GH_USER }}"git push # ...or other Git commands
All done!