From 5c71a997ced0f5d88586d60997935f0d07fe1501 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Thu, 24 Feb 2022 22:24:47 +0000 Subject: [PATCH] Only set the username and email in the one command it matters --- .github/scripts/update-template-repo.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/scripts/update-template-repo.sh b/.github/scripts/update-template-repo.sh index d2bb3b27..213087aa 100755 --- a/.github/scripts/update-template-repo.sh +++ b/.github/scripts/update-template-repo.sh @@ -10,9 +10,6 @@ set -x # print every command before it runs CLONE_DIR=$(mktemp -d) -# Setup git -git config --global user.email "gw@ilym.me" # TODO: Have an email address for agb bot -git config --global user.name "GBA bot" git clone --single-branch --branch master "https://$GITHUB_USERNAME:$API_TOKEN_GITHUB@github.com/agbrs/template.git" "$CLONE_DIR" # Copy the .git directory to a different place so we can ensure that only the relevant template stuff stays @@ -26,5 +23,5 @@ VERSION=$(git describe) COMMIT_MESSAGE="Update to $VERSION" git -C "$TEMP_DIR" add . -git -C "$TEMP_DIR" commit -m "$COMMIT_MESSAGE" +git -C "$TEMP_DIR" -c user.email="gw@ilym.me" -c user.name="GBA bot" commit -m "$COMMIT_MESSAGE" git -C "$TEMP_DIR" push origin HEAD \ No newline at end of file