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

jaxl-innovations-private-limited/setup-git-user

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup-git-user

GitHub Action that sets git user and email to enable commiting

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 sets the user and email in one line.

Usage

    steps:
      - uses: actions/checkout@v2
      - uses: fregante/setup-git-user@v1
      - 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@v2
      - run: git config --global user.email "you@example.com"
      - run: git config --global user.name "Your Name"
      - run: git commit --message 'Something cool'
      - run: git push

Related

  • daily-version-action - Creates a new tag using the format Y.M.D, but only if HEAD isn’t already tagged.
  • release-with-changelog - Creates reasonable enough GitHub releases for pushed tags, with the commit log as release body.
  • title-to-labels-action - Cleans up the titles of issues and PRs from common opening keywords.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%