Skip to content

Commit 80e8f98

Browse files
authored
ci: set git safe.directory and use number for fetch-depth (#759)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 2028a10 commit 80e8f98

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ jobs:
7575
steps:
7676
- name: Set RELEASE_TAG
7777
run: "echo \"RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
78+
- run: git config --global --add safe.directory $PWD
7879
- uses: actions/checkout@v4
7980
with:
80-
fetch-depth: '0'
81+
fetch-depth: 0
8182
- uses: actions/setup-go@v5
8283
with:
8384
go-version: 1.23.x
@@ -112,9 +113,10 @@ jobs:
112113
statuses: write
113114
steps:
114115
- run: "echo \"RELEASE_TAG=${GITHUB_REF#refs/tags/}\" >> $GITHUB_ENV"
116+
- run: git config --global --add safe.directory $PWD
115117
- uses: actions/checkout@v4
116118
with:
117-
fetch-depth: '0'
119+
fetch-depth: 0
118120
- name: Set up QEMU
119121
uses: docker/setup-qemu-action@v3
120122
- name: Set up Docker Buildx

0 commit comments

Comments
 (0)