Push To Repository
- Define
GH_USER
andGH_EMAIL
in the repository secrets. - Create step in the job to configure Git credentials.
- name: Configure git credentials
uses: OleksiyRudenko/gha-git-[email protected]-latest
with:
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 Deploy
run: |
git config --global user.email "${{ secrets.GH_EMAIL }}"
git config --global user.name "${{ secrets.GH_USER }}"
git push # ...or other Git commands
All done!