Use GITHUB_ACTOR
in git config
(#5009)
This commit is contained in:
parent
bb2fff0cbb
commit
c403e00331
4
.github/workflows/update_directory.yml
vendored
4
.github/workflows/update_directory.yml
vendored
@ -84,8 +84,8 @@ jobs:
|
||||
- name: Update DIRECTORY.md
|
||||
run: |
|
||||
cat DIRECTORY.md
|
||||
git config --global user.name github-actions
|
||||
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
|
||||
git config --global user.name "$GITHUB_ACTOR"
|
||||
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
|
||||
git add DIRECTORY.md
|
||||
git commit -am "Update directory" || true
|
||||
|
Loading…
Reference in New Issue
Block a user