Skip to content

Commit 5e89de6

Browse files
ci: install Alpine deps before git diagnostics step
1 parent a04d5b1 commit 5e89de6

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/ci-ps2dev-migration-probe.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ jobs:
2525
- name: git checkout
2626
uses: actions/checkout@v6
2727

28-
- name: Mark workspace safe and fetch history
29-
run: |
30-
git config --global --add safe.directory "$GITHUB_WORKSPACE"
31-
git fetch --prune --unshallow
32-
3328
- name: Install diagnostic host dependencies (Alpine only)
3429
run: |
3530
if command -v apk >/dev/null 2>&1; then
@@ -55,6 +50,15 @@ jobs:
5550
diffutils
5651
fi
5752
53+
- name: Mark workspace safe and fetch history
54+
run: |
55+
if command -v git >/dev/null 2>&1; then
56+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
57+
git fetch --prune --unshallow || true
58+
else
59+
echo "git not available before dependency install"
60+
fi
61+
5862
- name: Capture fingerprint and SDK snapshot
5963
run: |
6064
set +e

0 commit comments

Comments
 (0)