ci: add GitHub to GitLab auto-sync workflow#41
Closed
jarcherNV wants to merge 4 commits into
Closed
Conversation
Add GitHub Actions workflow to automatically sync commits from GitHub main to GitLab via merge requests: - Cherry-picks commits from GitHub onto GitLab sync branches - Excludes .github/ directory (GitHub-specific CI files) - Creates/updates GitLab MRs for review before merging - Preserves commit authorship and dates - Triggers on PR updates (for testing) and main branch pushes Requires GitHub secrets: GITLAB_TOKEN, GITLAB_HOST, GITLAB_PROJECT_PATH Add trivial README marker to ensure sync changes are visible in GitLab MRs.
Collaborator
Author
|
/ok to test 112d572 |
Collaborator
Author
|
/ok to test 5199698 |
Collaborator
Author
|
/ok to test 8601586 |
janickm
reviewed
May 4, 2026
| env: | ||
| # Required secrets: | ||
| # GITLAB_TOKEN (PAT with write_repository + api scope) | ||
| # GITLAB_HOST (GitLab host, e.g. gitlab-master.nvidia.com) |
Collaborator
There was a problem hiding this comment.
can we actually resolve the internal gitlab from "external" runners?
Collaborator
Author
There was a problem hiding this comment.
No it cannot, so either this would need to use a self hosted runner, or we'd need a different sync mechanism.
janickm
requested changes
May 4, 2026
janickm
left a comment
Collaborator
There was a problem hiding this comment.
most likely what you want to do instead is to have the GL "pull" the GH changes (not the other way around) - this would also simplify the integration on this public-facing repo a lot and we wouldn't "share" internal details
[👎 for now]
Collaborator
Author
|
Closing this PR as we will be sync'ing from the gitlab side instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add GitHub Actions workflow to automatically sync commits from GitHub main to GitLab via merge requests:
Requires GitHub secrets: GITLAB_TOKEN, GITLAB_HOST, GITLAB_PROJECT_PATH
Add trivial README marker to ensure sync changes are visible in GitLab MRs.