File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,23 @@ jobs:
1818 runs-on : ubuntu-latest
1919
2020 steps :
21- - name : Checkout
22- uses : actions/checkout@v4
21+ - uses : actions/checkout@v4
2322 with :
24- # Necessary for Lunaria to work properly
25- # Makes the action clone the entire git history
2623 fetch-depth : 0
24+
25+ - name : Ensure complete Git history
26+ run : |
27+ git config --global --add safe.directory $PWD
28+ if [ -f .git/shallow ]; then
29+ git fetch --unshallow origin || echo "Already unshallow"
30+ fi
31+ git fetch --tags || true
32+
33+ - name : Verify Git state
34+ run : |
35+ echo "Current branch: $(git branch --show-current)"
36+ echo "Commit count: $(git rev-list --count HEAD)"
37+ git log --oneline -3 || echo "No commits accessible"
2738
2839 - name : Setup Node
2940 uses : actions/setup-node@v4
You can’t perform that action at this time.
0 commit comments