From b99a604425d0fd0e3202b8e7720aead93647fc23 Mon Sep 17 00:00:00 2001 From: Lord Alfred <2259979+lord-alfred@users.noreply.github.com> Date: Sun, 2 Jul 2023 21:27:30 +0300 Subject: [PATCH] Add comment about get 1st commit email --- .github/workflows/update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 84b58dc8..dbf90a0f 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -93,7 +93,7 @@ jobs: git remote add github "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" git pull github ${GITHUB_REF} --ff-only - # Get name & email from 1st commit + # Get name & email from 1st commit (needs `fetch-depth: 0` in step `actions/checkout@v3`) git config --local user.email "$(git log --format='%ae' --reverse | head -1)" git config --local user.name "$(git log --format='%an' --reverse | head -1)"