Skip to content

Commit 8934457

Browse files
Fix: Use fetch-depth: 0 to prevent git error 128
1 parent b43288a commit 8934457

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/docker-build.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- name: Fix detached HEAD
16-
run: |
17-
git fetch --all
18-
git checkout ${{ github.ref_name }}
19-
2015
- name: Checkout repository
2116
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
2219

2320
- name: Log in to the GitHub Container Registry
2421
uses: docker/login-action@v2

0 commit comments

Comments
 (0)