Skip to content

Commit 5acb119

Browse files
committed
wip
+ git config --global --add safe.directory '*' + git config --global user.name kdevops error: could not lock config file /home/gh/.gitconfig: File exists Error: Process completed with exit code 255. Signed-off-by: Daniel Gomez <[email protected]>
1 parent 3df5d1b commit 5acb119

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/actions/configure/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ runs:
2828
shell: bash
2929
run: |
3030
set -euxo pipefail
31-
git config --global --add safe.directory '*'
32-
git config --global user.name "kdevops"
33-
git config --global user.email "[email protected]"
31+
git config --local --add safe.directory '*'
32+
git config --local user.name "kdevops"
33+
git config --local user.email "[email protected]"
3434
3535
- name: Make sure our repo kdevops defconfig exists
3636
id: defconfig

.github/workflows/kdevops.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ jobs:
207207
git fetch --depth=1 origin refs/pull/${{ github.event.number }}/head:pr-branch
208208
git checkout pr-branch
209209
else
210-
git checkout ${{ github.sha }}
210+
# For push events, checkout the branch head instead of specific SHA
211+
git fetch --depth=1 origin ${{ github.ref }}
212+
git checkout FETCH_HEAD
211213
fi
212214
213215
- name: Report kdevops commit information

0 commit comments

Comments
 (0)