From edb45646dd3dde2dff0966f34131b29022a77c93 Mon Sep 17 00:00:00 2001 From: Taylor Kline Date: Tue, 9 Apr 2024 15:53:19 -0500 Subject: [PATCH] Update workflow and README to use github-actions[bot] user By setting user.email to the official github-actions[bot] email, action commits show the octocat icon with a hyperlink to https://github.com/apps/github-actions, the same way a normal user's commit shows their profile picture and links to their GitHub page. The user.name is not important, but updated to github-actions[bot] as well for consistency. --- .github/workflows/update-main-version.yml | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-main-version.yml b/.github/workflows/update-main-version.yml index 9dad671..435ad5f 100644 --- a/.github/workflows/update-main-version.yml +++ b/.github/workflows/update-main-version.yml @@ -27,8 +27,8 @@ jobs: fetch-depth: 0 - name: Git config run: | - git config user.name github-actions - git config user.email github-actions@github.com + git config user.name github-actions[bot] + git config user.email github-actions[bot]@users.noreply.github.com - name: Tag new target run: git tag -f ${{ github.event.inputs.major_version }} ${{ github.event.inputs.target }} - name: Push new tag diff --git a/README.md b/README.md index bfecf46..1f19dad 100644 --- a/README.md +++ b/README.md @@ -274,8 +274,8 @@ jobs: - uses: actions/checkout@v4 - run: | date > generated.txt - git config user.name github-actions - git config user.email github-actions@github.com + git config user.name github-actions[bot] + git config user.email github-actions[bot]@users.noreply.github.com git add . git commit -m "generated" git push