GitHub Action for configuring git credentials, username etc.
MIT License
GitHub Action for configuring git credentials, username etc.
persist-credentials
- name: Configure git
uses: kota65535/github-git-config-action@v1
with:
user.name: Tomohiko Ozawa # Set user.name
user.email: [email protected] # Set user.email
github-token: ${{ secrets.PAT }} # Use a personal access token as git credentials
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 |