CI: Push master to GitHub u-boot-concept for ReadTheDocs

Add GitHub push to the trigger_snap_builds job so that when merges
land on master, the code is also pushed to the u-boot-concept GitHub
repository, triggering ReadTheDocs documentation rebuilds.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-developed-by: Claude <noreply@anthropic.com>
This commit is contained in:
Simon Glass
2025-12-21 06:25:41 -07:00
parent f97e194c3f
commit e07c2b5fa0

View File

@@ -955,6 +955,7 @@ trigger_snap_builds:
- echo "$LAUNCHPAD_SSH_KEY" | sed 's/\\n/\n/g' > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- ssh-keyscan git.launchpad.net >> ~/.ssh/known_hosts
- ssh-keyscan github.com >> ~/.ssh/known_hosts
- eval "$(ssh-agent -s)"
- ssh-add ~/.ssh/id_rsa
- git config --global user.name "GitLab CI"
@@ -972,3 +973,9 @@ trigger_snap_builds:
git commit --allow-empty -m "Trigger build: U-Boot updated to $CI_COMMIT_SHORT_SHA"
git push origin master
echo "Snap build triggers completed"
echo "Pushing to GitHub u-boot-concept for ReadTheDocs..."
cd $CI_PROJECT_DIR
git remote add github git@github.com:sjg20/u-boot-concept.git || true
git push github HEAD:master --force
echo "GitHub push completed"