Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Apply git user

Actions
Apply a well-known git user to git config user.*
2.0.0
Star (0)

Tags

 (1)

apply-git-user (for GitHub Actions)

Apply a well-known git user to git config user.*.

  • actions-user
  • github-actions
  • (Latest git commit user)
  • (Specific user)

Usage

Basic

- uses: tshion/apply-git-user@(version)
  with:
    user: (git user)
    email: (git user email) # Set if `user` is `specific`
    name: (git user name) # Set if `user` is `specific`

Replace (git user) with one of the following values.

(git user) User Description
actions-user actions-user
github-actions github-actions
latest-commit e.g. latest commit Latest git commit user
specific e.g. specific Set up a specific user by (git user email) and (git user name).

Use working directory

- uses: actions/checkout@v4
  with:
    path: from

- uses: tshion/apply-git-user@(version)
  with:
    path: from
    user: (git user)

Use git config --global user.*

- uses: tshion/apply-git-user@(version)
  with:
    global: true
    user: (git user)

Notes

References

Apply git user is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Apply a well-known git user to git config user.*
2.0.0

Tags

 (1)

Apply git user is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.