Skip to content

Commit c935d6c

Browse files
committed
ci: maybe fix pipeline
1 parent f3b6c46 commit c935d6c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,18 @@ jobs:
241241
echo "No changes to manifest.json"
242242
else
243243
echo "Committing updated manifest.json"
244+
245+
# Ensure we're on the main branch
246+
echo "Current branch: $(git branch --show-current || echo 'detached HEAD')"
247+
echo "Checking out main branch..."
248+
git fetch origin main
249+
git checkout main || git checkout -b main origin/main
250+
251+
# Add and commit changes
244252
git add manifest.json
245253
git commit -m "chore: update manifest.json for release v${{ needs.build.outputs.version }}"
254+
255+
# Push to main branch
256+
echo "Pushing changes to main branch..."
246257
git push origin main
247258
fi

0 commit comments

Comments
 (0)