Skip to content

Commit efff027

Browse files
authored
fix: Adds debug output to release.yml (#173)
1 parent 79b38d5 commit efff027

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,33 @@ jobs:
8787
8888
- name: Checkout and create dist branch from main
8989
run: git checkout -b dist main
90-
91-
- name: Add and commit changes to the dist folder
90+
91+
- name: Commit and Push Changes (to dist)
9292
run: |
9393
git add dist
94-
if [[ -n $(git status --porcelain) ]]; then
95-
git commit -m "Update dist folder"
96-
git push origin dist
94+
if git diff --staged --quiet; then
95+
echo "No changes to commit"
9796
else
98-
echo "No changes to commit"
97+
git commit -m "Update dist folder [skip ci]"
98+
99+
# --- ADD THESE DEBUGGING STEPS ---
100+
echo "--- Before Push ---"
101+
echo "Current Branch:"
102+
git branch
103+
echo "Remote Branches:"
104+
git branch -r
105+
echo "Local Branches:"
106+
git branch -l
107+
echo "Last Commit on dist (local):"
108+
git log -n 1 dist
109+
echo "Pushing to origin dist..."
110+
# --- END DEBUGGING STEPS ---
111+
112+
git push origin dist
113+
114+
# --- ADD THESE DEBUGGING STEPS ---
115+
echo "--- After Push ---"
116+
echo "Remote Branches (after push):"
117+
git branch -r
118+
# --- END DEBUGGING STEPS ---
99119
fi

0 commit comments

Comments
 (0)