Skip to content

Commit

Permalink
Use local git config (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Mar 4, 2023
1 parent e7c7169 commit 77c1b55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
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

0 comments on commit 77c1b55

Please sign in to comment.