ci: configure git user and email (#5284)

Set Git user and email in the CD workflow to correctly push new tags.

Fix #5283
This commit is contained in:
Marco Ferrari 2024-02-15 11:14:55 +01:00 committed by GitHub
parent e85bf75ff6
commit 54514126f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -253,6 +253,9 @@ jobs:
- name: Tag major, minor, and latest versions
if: steps.release.outputs.release_created
run: |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git tag --annotate --force ${{ env.SEMVER_MAJOR_VERSION }} -m "Release ${{ env.SEMVER_MAJOR_VERSION }}"
git tag --annotate --force latest -m "Release latest (${{ env.RELEASE_VERSION }})"