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

GitHub Action

Apply git user

1.0.0

Apply git user

user-plus

Apply git user

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

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Apply git user

uses: tshion/[email protected]

Learn more about this action in tshion/apply-git-user

Choose a version

apply-git-user (for GitHub Actions)

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

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

Usage

Basic

- uses: tshion/apply-git-user@v1
  with:
    user: (placeholder)

Replace (placeholder) with one of the following values.

  • actions-user
  • github-actions
  • latest-commit

Use working directory

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

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

Use git config --global user.*

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

References