From e777dbe39d32dfd6df01a88fd48fe68ae7c3f785 Mon Sep 17 00:00:00 2001 From: Tim deBoer Date: Mon, 5 Feb 2024 15:01:27 -0500 Subject: [PATCH] chore: add git user (#132) From https://github.com/orgs/community/discussions/40405 it looks like we can generate a valid email. Signed-off-by: Tim deBoer --- .github/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0ac9332c..693ef7ce 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -48,6 +48,7 @@ jobs: - name: tag run: | git config --local user.name ${{ github.actor }} + git config --local user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" # Add the new version in package.json file sed -i "s#version\":\ \"\(.*\)\",#version\":\ \"${{ steps.TAG_UTIL.outputs.bootcExtensionVersion }}\",#g" package.json @@ -74,7 +75,7 @@ jobs: if: ${{ github.event.inputs.branch == 'main' }} run: | git config --local user.name ${{ github.actor }} - git config --local user.email "deboer@redhat.com" + git config --local user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" CURRENT_VERSION=$(echo "${{ steps.TAG_UTIL.outputs.bootcExtensionVersion }}") tmp=${CURRENT_VERSION%.*} minor=${tmp#*.}