/github-git-config-action

GitHub Action for configuring git credentials, username etc.

Primary LanguageJavaScriptMIT LicenseMIT

github-git-config-action

GitHub Action for configuring git credentials, username etc.

  • All git-config options are available
  • Easily overrides credentials set by checkout action's persist-credentials

Usage

  - name: Configure git
    uses: kota65535/github-git-config-action@v1
    with:
      user.name: Tomohiko Ozawa           # Set user.name
      user.email: kota65535@gmail.com     # Set user.email
      github-token: ${{ secrets.PAT }}    # Use a personal access token as git credentials

Inputs

Name Description Required Default
scope Scope (ex: global, local).
See here for more details
Yes global
github-token GitHub personal access token to use as git credentials No N/A
All config variables Value to be set for the git config variable (ex. user.name, user.email) No N/A