From c403e0033198adb2b023d01296ea1e3fc7fc2620 Mon Sep 17 00:00:00 2001 From: Piotr Idzik <65706193+vil02@users.noreply.github.com> Date: Mon, 8 Jan 2024 22:32:18 +0100 Subject: [PATCH] Use `GITHUB_ACTOR` in `git config` (#5009) --- .github/workflows/update_directory.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_directory.yml b/.github/workflows/update_directory.yml index 0530a0c2..3638e352 100644 --- a/.github/workflows/update_directory.yml +++ b/.github/workflows/update_directory.yml @@ -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