From 8ad905a8ed91be4f3b12b557c70cf64c43b0c7d9 Mon Sep 17 00:00:00 2001 From: vil02 Date: Mon, 8 Jan 2024 15:07:29 +0100 Subject: [PATCH] fix: use `GITHUB_ACTOR` in `git config` --- .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 0530a0c267a9..3638e3529e0b 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