You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Setup Git environment
v0.1.0
Pre-release
๐ถ Install and configure Git for GitHub Actions
- run: git commit --message 'Automated changes'
# โ Please tell me who you are.
# Run
# git config --global user.email "[email protected]"
# git config --global user.name "Your Name" |
- uses: actions4git/setup-git@v1
- run: git commit --message 'Automated changes'
# โ
Committed 3 files |
๐ข Lets you pick a specific version of Git to use (if needed)
โก Defaults to using the system version of Git
๐ Lets you add additional [safe directories]
๐ Properly configures Git to use the github.token
by default
๐ค Sets up @github-actions[bot] as the default Git author
on: push
jobs:
job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions4git/setup-git@v1
- run: npx --yes prettier --write .
- run: git add --all
- run: git commit --message 'Prettier'
- run: git push