This GitHub Action will automatically setup following git configs to be ready for git commit and git push commands
- User Config
- Push Config
push.autoSetupRemote=true
uservalid valuesbot(default) - configuregithub-actions[bot]as git useractor- configure github actions contextgithub.actoras git usercommitter- configure committer fromHEADcommit as git userUSER_NAME <USER_EMAIL>- configure git user explicitly
jobs:
example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: qoomon/actions--setup-git@v1
with:
user: bot
- run: |
date > dummy.txt
git add dummy.txt
git commit -m "chore: update dummy"
git pushTrigger Release Version workflow