From 1c24e1a655fce75a83560e3a92c02a09b1d4e451 Mon Sep 17 00:00:00 2001 From: Magnus Kulke Date: Wed, 31 Jan 2024 19:08:52 +0100 Subject: [PATCH] ci: Add default user for git rebase On a github runner rebases might fail because there is no git user configured. Adopted a from the CAA repo: https://github.com/confidential-containers/cloud-api-adaptor/blob/a326448163882740fbaf25ceb1b16dafa784636c/hack/ci-helper.sh#L14C1-L19C2 Signed-off-by: Magnus Kulke --- .github/workflows/kbs-e2e-az-snp-vtpm.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/kbs-e2e-az-snp-vtpm.yaml b/.github/workflows/kbs-e2e-az-snp-vtpm.yaml index 487083229..6f11c8add 100644 --- a/.github/workflows/kbs-e2e-az-snp-vtpm.yaml +++ b/.github/workflows/kbs-e2e-az-snp-vtpm.yaml @@ -41,7 +41,9 @@ jobs: - name: Rebase the source if: github.event_name != 'push' - run: ./kbs/hack/ci-helper.sh rebase-atop-of-the-latest-target-branch + git config --global user.name "GH Actions Workflow" + git config --global user.email "" + ./kbs/hack/ci-helper.sh rebase-atop-of-the-latest-target-branch - name: Archive source run: git archive -o kbs.tar.gz HEAD