From 8b245a1618047021d6e321da0494ff672f6f0d53 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 7 Aug 2023 00:19:02 +0200 Subject: [PATCH] Backup/restore the git configuration in the build-ui step. This is to ensure that following steps that depend on the default username and email (e.g. the AUR release step) won't fail because of mismatching identities. --- .drone.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.drone.yml b/.drone.yml index 974df2a42..a1c308254 100644 --- a/.drone.yml +++ b/.drone.yml @@ -135,6 +135,8 @@ steps: - chmod 0600 ~/.ssh/id_rsa - ssh-keyscan git.platypush.tech >> ~/.ssh/known_hosts 2>/dev/null + # Backup the original git configuration before changing name and email + - cp .git/config /tmp/git.config.orig - git config user.name "Platypush CI/CD Automation" - git config user.email "admin@platypush.tech" - git config commit.gpgsign true @@ -145,6 +147,9 @@ steps: - git remote add origin git@git.platypush.tech:platypush/platypush.git - git push origin master + # Restore the original git configuration + - mv /tmp/git.config.orig .git/config + - name: update-arch-packages image: python:3.11-alpine environment: