Skip to content

Commit cf20237

Browse files
author
rahul-infra
committed
debug semantic release preview
1 parent 2ce524f commit cf20237

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/version-preview.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ jobs:
2121
with:
2222
fetch-depth: 0
2323

24+
- name: Debug Git State
25+
run: |
26+
echo "Current branch: $(git branch --show-current)"
27+
echo "Current HEAD: $(git rev-parse HEAD)"
28+
echo ""
29+
echo "Latest 5 commits:"
30+
git log --oneline -5
31+
echo ""
32+
echo "Latest tag:"
33+
git describe --tags --abbrev=0 || echo "No tags found"
34+
echo ""
35+
echo "Commits since last tag:"
36+
git log $(git describe --tags --abbrev=0 2>/dev/null || echo "HEAD~10")..HEAD --oneline || echo "Cannot determine"
37+
2438
- name: Semantic Release (Dry Run)
2539
id: semantic
2640
uses: cycjimmy/semantic-release-action@v4

0 commit comments

Comments
 (0)