Skip to content

Commit

Permalink
ci: Add default user for git rebase
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mkulke committed Jan 31, 2024
1 parent 7ec54fa commit b3fd903
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/kbs-e2e-az-snp-vtpm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ jobs:
ref: main

- name: Rebase the source
run: ./kbs/hack/ci-helper.sh rebase-atop-of-the-latest-target-branch
run: |
git config --global user.name "GH Actions Workflow"
git config --global user.email "<rebase@gh-actions-workflow>"
./kbs/hack/ci-helper.sh rebase-atop-of-the-latest-target-branch
- name: Archive source
run: git archive -o kbs.tar.gz HEAD
Expand Down

0 comments on commit b3fd903

Please sign in to comment.