Skip to content

Sync upstream master daily while preserving main workflow - #2

Closed
inkydragon with Copilot wants to merge 6 commits into
mainfrom
copilot/sync-upstream-automatically
Closed

inkydragon with Copilot wants to merge 6 commits into
mainfrom
copilot/sync-upstream-automatically

Conversation

Copilot AI commented Sep 7, 2026 •

Copy link
Copy Markdown

The GitHub default branch main hosts the synchronization workflow, while master mirrors the official GitLab master commit-for-commit. Previously the proposed workflow overwrote main, which would remove its own scheduled workflow.

The workflow fetches https://gitlab.inria.fr/core-math/core-math.git and updates only refs/heads/master, including upstream history rewrites. It runs daily at 06:00 UTC+8 (0 22 * * * UTC) and supports manual dispatch. Concurrent runs are serialized and limited to ten minutes. No build jobs run, and GitLab CI is unchanged.

GitHub Actions is enabled. Scheduling takes effect after this PR is merged into main; GitHub may delay scheduled runs. The initial master mirror is also being published directly from the fetched upstream commit.

Copilot AI linked an issue Sep 7, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits September 7, 2026 14:47
Co-authored-by: inkydragon <5158738+inkydragon@users.noreply.github.com>
Co-authored-by: inkydragon <5158738+inkydragon@users.noreply.github.com>
Copilot AI changed the title [WIP] Set up automatic upstream sync to main branch Automate daily upstream synchronization Sep 7, 2026
Copilot AI requested a review from inkydragon September 7, 2026 14:50
Copilot stopped work on behalf of inkydragon due to an error September 7, 2026 14:55
Co-authored-by: inkydragon <5158738+inkydragon@users.noreply.github.com>
Copilot AI and others added 2 commits September 7, 2026 15:03
Co-authored-by: inkydragon <5158738+inkydragon@users.noreply.github.com>
Co-authored-by: inkydragon <5158738+inkydragon@users.noreply.github.com>

@inkydragon inkydragon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

推送的分支错误,不应推送到主分支
on 条件错误

@inkydragon inkydragon closed this Sep 7, 2026
@inkydragon
inkydragon deleted the copilot/sync-upstream-automatically branch September 7, 2026 15:17
Copilot AI requested a review from inkydragon September 7, 2026 15:17
@inkydragon inkydragon changed the title Automate daily upstream synchronization Sync upstream master daily while preserving main workflow Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: 自动上游同步

2 participants