fix: use GITHUB_ACTOR in git config

This commit is contained in:
vil02 2024-01-15 17:10:40 +01:00
parent a26e5a4393
commit e4a887c6c4

View file

@ -51,8 +51,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 "updating DIRECTORY.md" || true