From 3512cc66cce52901adec6624fe7d137c0b6a4dd5 Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 25 Nov 2024 12:39:31 +0000 Subject: [PATCH] ci: add user identity to release (#98) Release-As: v0.5.3 Reviewed-on: https://git.montehaselino.de/DHBW/dhbw-abb-typst-template/pulls/98 Co-authored-by: servostar Co-committed-by: servostar --- .gitea/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index df4a2ed..88c2c1f 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -40,6 +40,7 @@ jobs: if: contains(github.event.head_commit.message, 'Release-As:') env: USERNAME: servostar + EMAIL: sven.vogel123@web.de steps: - name: Check out repository code uses: actions/checkout@v3 @@ -63,10 +64,18 @@ jobs: run: | export VERSION=$(echo "${COMMIT_MESSAGE}" | grep -Po '(?<=Release-As: )v\d+\.\d+\.\d+') echo "==> Tagging for version: ${VERSION}" + echo "::group::{Configure git credential store}" git config --global credential.helper store echo "https://${USERNAME}:${{secrets.RELEASE_TOKEN}}}@${{github.repositoryUrl}}" > ~/.git-credentials + echo "::endgroup::" + echo "::group::{Configure git user identity}" + git config --global user.name "${USERNAME}" + git config --global user.email "${EMAIL}" + echo "::endgroup::" + echo "::group::{Tag commit}" git tag -m "Release" "${VERSION}" git push origin "${VERSION}" + echo "::endgroup::" echo "${VERSION}" > Version.txt - name: Create release id: create-release