Use GITHUB_ACTOR in git config (#5009)

This commit is contained in:
Piotr Idzik 2024-01-08 22:32:18 +01:00 committed by GitHub
parent bb2fff0cbb
commit c403e00331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,8 +84,8 @@ jobs:
- name: Update DIRECTORY.md - name: Update DIRECTORY.md
run: | run: |
cat DIRECTORY.md cat DIRECTORY.md
git config --global user.name github-actions git config --global user.name "$GITHUB_ACTOR"
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com' 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 remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git add DIRECTORY.md git add DIRECTORY.md
git commit -am "Update directory" || true git commit -am "Update directory" || true