From 45305f9d2940829ff11cd937b948ab8328d91822 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 23 Nov 2021 19:57:48 +0100 Subject: [PATCH 1/2] Use proper email for the Git user in GHA --- .github/workflows/test-library.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-library.yml b/.github/workflows/test-library.yml index 181a4adcb9..9f88d8d057 100644 --- a/.github/workflows/test-library.yml +++ b/.github/workflows/test-library.yml @@ -265,9 +265,12 @@ jobs: - name: Setup git user as [bot] if: >- fromJSON(needs.pre-setup.outputs.is-untagged-devel) + # Refs: + # * https://github.community/t/github-actions-bot-email-address/17204/6 + # * https://github.com/actions/checkout/issues/13#issuecomment-724415212 run: > git config --local user.email - 'github-actions[bot]@users.noreply.github.com' + '41898282+github-actions[bot]@users.noreply.github.com' git config --local user.name 'github-actions[bot]' - name: >- @@ -755,9 +758,12 @@ jobs: fetch-depth: 1 ref: ${{ github.event.inputs.release-commitish }} - name: Setup git user as [bot] + # Refs: + # * https://github.community/t/github-actions-bot-email-address/17204/6 + # * https://github.com/actions/checkout/issues/13#issuecomment-724415212 run: > git config --local user.email - 'github-actions[bot]@users.noreply.github.com' + '41898282+github-actions[bot]@users.noreply.github.com' git config --local user.name 'github-actions[bot]' From 7ffb83f956727e759420088c31a98a82c6dcddfc Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 23 Nov 2021 20:43:42 +0100 Subject: [PATCH 2/2] Use an action to set the GHA user in Git --- .github/workflows/test-library.yml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test-library.yml b/.github/workflows/test-library.yml index 9f88d8d057..a72f73103d 100644 --- a/.github/workflows/test-library.yml +++ b/.github/workflows/test-library.yml @@ -265,14 +265,7 @@ jobs: - name: Setup git user as [bot] if: >- fromJSON(needs.pre-setup.outputs.is-untagged-devel) - # Refs: - # * https://github.community/t/github-actions-bot-email-address/17204/6 - # * https://github.com/actions/checkout/issues/13#issuecomment-724415212 - run: > - git config --local user.email - '41898282+github-actions[bot]@users.noreply.github.com' - - git config --local user.name 'github-actions[bot]' + uses: fregante/setup-git-user@v1.0.1 - name: >- Tag the release in the local Git repo as ${{ needs.pre-setup.outputs.git-tag }} @@ -758,14 +751,7 @@ jobs: fetch-depth: 1 ref: ${{ github.event.inputs.release-commitish }} - name: Setup git user as [bot] - # Refs: - # * https://github.community/t/github-actions-bot-email-address/17204/6 - # * https://github.com/actions/checkout/issues/13#issuecomment-724415212 - run: > - git config --local user.email - '41898282+github-actions[bot]@users.noreply.github.com' - - git config --local user.name 'github-actions[bot]' + uses: fregante/setup-git-user@v1.0.1 - name: >- Tag the release in the local Git repo