We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3b6c46 commit c935d6cCopy full SHA for c935d6c
1 file changed
.github/workflows/build-release.yml
@@ -241,7 +241,18 @@ jobs:
241
echo "No changes to manifest.json"
242
else
243
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
252
git add manifest.json
253
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..."
257
git push origin main
258
fi
0 commit comments