From a588db96c3bb5463db726b2711e9012606c806a0 Mon Sep 17 00:00:00 2001 From: Tommy Gatti Date: Mon, 26 Feb 2024 16:58:30 +1100 Subject: [PATCH] git user.email now uses github-actions userid See https://github.com/ACCESS-NRI/reproducibility/issues/19 --- .github/workflows/cd.yml | 5 +++-- .github/workflows/ci.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c23eb55..9124ad0 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -61,9 +61,10 @@ jobs: - uses: actions/checkout@v4 - name: Push Tag + # NOTE: Regarding the config user.name/user.email, see https://github.com/actions/checkout/pull/1184 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 41898282+github-actions[bot]@users.noreply.github.com git tag ${{ needs.generate-tag.outputs.name }} --force git push --tags --force diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 834d7f5..c0ff391 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -176,9 +176,10 @@ jobs: ref: ${{ github.head_ref }} - name: Push + # NOTE: Regarding the config user.name/user.email, see https://github.com/actions/checkout/pull/1184 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 41898282+github-actions[bot]@users.noreply.github.com git tag ${{ needs.prerelease-deploy-version.outputs.version }} --force git push --tags --force