We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a04d5b1 commit 5e89de6Copy full SHA for 5e89de6
1 file changed
.github/workflows/ci-ps2dev-migration-probe.yml
@@ -25,11 +25,6 @@ jobs:
25
- name: git checkout
26
uses: actions/checkout@v6
27
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
-
33
- name: Install diagnostic host dependencies (Alpine only)
34
run: |
35
if command -v apk >/dev/null 2>&1; then
@@ -55,6 +50,15 @@ jobs:
55
50
diffutils
56
51
fi
57
52
53
+ - name: Mark workspace safe and fetch history
54
+ run: |
+ if command -v git >/dev/null 2>&1; then
+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
+ git fetch --prune --unshallow || true
58
+ else
59
+ echo "git not available before dependency install"
60
+ fi
61
+
62
- name: Capture fingerprint and SDK snapshot
63
64
set +e
0 commit comments