ci: run fresh-install workflows only in the upstream repo - #353
Open
ZheFeng7110 wants to merge 1 commit into
Open
ci: run fresh-install workflows only in the upstream repo#353ZheFeng7110 wants to merge 1 commit into
ZheFeng7110 wants to merge 1 commit into
Conversation
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.
Summary
Gate every job in
ci-fresh-install.ymlandci-aarch64-fresh-install.ymlwithgithub.repository == 'mcpp-community/mcpp', so the scheduled runs never execute in forks.Why
Both workflows have
scheduletriggers:ci-fresh-install.yml: daily cron (0 6 * * *)ci-aarch64-fresh-install.yml: weekly Monday cron (0 6 * * 1)GitHub runs
schedule-triggered workflows on the repository's default branch and is not affected by thebranches: [main]filters used by the push/pull_request triggers. A fork that renames its default branch (e.g.main→fork-mainto stop push CI) still gets the cron executing on the renamed branch — wasting the fork's Actions quota and showing failing runs (fresh-install only tests released mcpp, so it provides zero value on a fork). Observed on a fork on 2026-08-03 (both workflows) and 2026-08-04 (daily one), all triggered byschedule, with no sync/push involved.The
workflow_run: [release]trigger is unaffected: it already fires only in the upstream repo, and the repository guard makes the schedule/manual/release paths no-ops on forks.Impact on upstream
Identical behavior: all jobs still run on every upstream trigger (release →
workflow_run, manual, daily/weekly schedule). PRs against upstream are unaffected — they run the self-host suites (ci-linux/ci-macos/ci-windows), which are untouched.Test plan