Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use local git config #11

Merged
merged 2 commits into from
Mar 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@ runs:
steps:
- shell: bash
run: |
git config --global user.name "GitHub Actions"
- shell: bash
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "GitHub Actions"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ This action is a convenience action which sets the user and email in one line.

```yaml
steps:
- uses: actions/checkout@v2
- uses: fregante/setup-git-user@v1
- uses: actions/checkout@v3
- uses: fregante/setup-git-user@v2
- run: git commit --message 'Something cool'
- run: git push
```
Expand All @@ -22,7 +22,7 @@ New commits and tags will be assigned to the [@actions](https://github.com/actio

```yaml
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: git config --global user.email "you@example.com"
- run: git config --global user.name "Your Name"
- run: git commit --message 'Something cool'
Expand Down