Thanks to visit codestin.com
Credit goes to github.com

Skip to content

GitHub Action that sets the git user and email to enable commiting

License

Notifications You must be signed in to change notification settings

fregante/setup-git-user

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup-git-user

GitHub Action that sets git user and email to enable committing

If you try to use git commit or git tag on GitHub Actions, it will throw an error:

Please tell me who you are. Run git config to set your account's default identity

This action is a convenience action which sets the user and email in one line.

Usage

    steps:
      - uses: actions/checkout@v3
      - uses: fregante/setup-git-user@v2
      - run: git commit --message 'Something cool'
      - run: git push

New commits and tags will be assigned to the @actions user. If you want to customize the user, you don't need this action. Just use:

    steps:
      - uses: actions/checkout@v3
      - run: git config --global user.email "[email protected]"
      - run: git config --global user.name "Your Name"
      - run: git commit --message 'Something cool'
      - run: git push

Related

About

GitHub Action that sets the git user and email to enable commiting

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •