mirror of
https://github.com/actions/checkout.git
synced 2024-04-27 16:57:09 +08:00
Update workflow and README to use github-actions[bot] user
By setting user.email to the official github-actions[bot] email, action commits show the octocat icon with a hyperlink to https://github.com/apps/github-actions, the same way a normal user's commit shows their profile picture and links to their GitHub page. The user.name is not important, but updated to github-actions[bot] as well for consistency.
This commit is contained in:
parent
cd7d8d697e
commit
edb45646dd
4
.github/workflows/update-main-version.yml
vendored
4
.github/workflows/update-main-version.yml
vendored
@ -27,8 +27,8 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Git config
|
- name: Git config
|
||||||
run: |
|
run: |
|
||||||
git config user.name github-actions
|
git config user.name github-actions[bot]
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions[bot]@users.noreply.github.com
|
||||||
- name: Tag new target
|
- name: Tag new target
|
||||||
run: git tag -f ${{ github.event.inputs.major_version }} ${{ github.event.inputs.target }}
|
run: git tag -f ${{ github.event.inputs.major_version }} ${{ github.event.inputs.target }}
|
||||||
- name: Push new tag
|
- name: Push new tag
|
||||||
|
@ -274,8 +274,8 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: |
|
- run: |
|
||||||
date > generated.txt
|
date > generated.txt
|
||||||
git config user.name github-actions
|
git config user.name github-actions[bot]
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions[bot]@users.noreply.github.com
|
||||||
git add .
|
git add .
|
||||||
git commit -m "generated"
|
git commit -m "generated"
|
||||||
git push
|
git push
|
||||||
|
Loading…
Reference in New Issue
Block a user