Skip to content

Commit d3601b4

Browse files
cursoragentlovasoa
andcommitted
Fix: Configure git safe directory in CI
Co-authored-by: contact <[email protected]>
1 parent 2408ef6 commit d3601b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/packages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ jobs:
9898
with:
9999
fetch-depth: 0
100100

101+
- name: Configure git safe directory
102+
run: git config --global --add safe.directory /__w/SQLPage/SQLPage
103+
101104
- name: Install build dependencies
102105
run: |
103106
dnf install -y \
@@ -123,7 +126,6 @@ jobs:
123126
- name: Create source tarball
124127
run: |
125128
VERSION=$(grep '^version = ' Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/')
126-
git config --global --add safe.directory /__w/SQLPage/SQLPage
127129
git archive --format=tar.gz --prefix="SQLPage-${VERSION}/" \
128130
-o ~/rpmbuild/SOURCES/sqlpage-${VERSION}.tar.gz HEAD
129131

0 commit comments

Comments
 (0)