Skip to content

rhighs/setup-git

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Git

This GitHub Action will automatically setup following git configs to be ready for git commit and git push commands

  • User Config
    • user.name value depends on userinput field
    • user.email value depends on user input field
  • Push Config
    • push.autoSetupRemote = true

Inputs

  • user valid values
    • bot (default) - configure github-actions[bot] as git user
    • actor - configure github actions context github.actor as git user
    • committer - configure committer from HEAD commit as git user
    • USER_NAME <USER_EMAIL> - configure git user explicitly

Example

jobs:
  example:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: rhighs/setup-git@v1
        with:
          user: bot

      - run: |
          date > dummy.txt
          git add dummy.txt
          git commit -m "chore: update dummy"
          git push

Development

Release New Action Version

Trigger Release Version workflow

About

GitHub Action to setup git user config

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Makefile 100.0%