Skip to content

Disable expensive and scheduled workflows on personal forks#20449

Open
dewitt wants to merge 5 commits intogoogle-gemini:mainfrom
dewitt:fix/disable-fork-workflows
Open

Disable expensive and scheduled workflows on personal forks#20449
dewitt wants to merge 5 commits intogoogle-gemini:mainfrom
dewitt:fix/disable-fork-workflows

Conversation

@dewitt
Copy link
Contributor

@dewitt dewitt commented Feb 26, 2026

Summary

This PR adds the if: github.repository == 'google-gemini/gemini-cli' condition to various workflow jobs to prevent them from running on personal forks of the repository.

Details

Many CI/CD workflows, especially those that are scheduled, triggered on tags, or use custom runners (like gemini-cli-ubuntu-16-core), currently attempt to run on every fork. This causes several issues:

  • Action Minute Consumption: Contributors may inadvertently use their personal Action minute quotas on expensive or scheduled runs intended only for the main repository.
  • Indefinite Queueing: Jobs using custom runners will sit in a "Queued" state indefinitely on forks since those runners are only available in the upstream organization.
  • Noisy Failures: Workflows relying on secrets (like GEMINI_API_KEY) consistently fail on forks, resulting in unnecessary error notifications.

This PR adds the repository check to the following workflows:

  • chained_e2e.yml
  • ci.yml (various jobs including skipper and final check)
  • deflake.yml
  • evals-nightly.yml
  • docs-page-action.yml
  • docs-rebuild.yml
  • smoke-test.yml
  • verify-release.yml
  • release-notes.yml
  • release-manual.yml
  • release-sandbox.yml
  • release-change-tags.yml
  • release-rollback.yml
  • gemini-scheduled-stale-issue-closer.yml
  • label-backlog-child-issues.yml
  • label-workstream-rollup.yml
  • trigger_e2e.yml

Related Issues

Fixes #20447

How to Validate

Since these changes are repository-level conditions, they can be validated by:

  1. Pushing these changes to a personal fork.
  2. Observing that the modified workflows (e.g., ci.yml, smoke-test.yml) are either skipped or their jobs are correctly filtered by the if condition.

Pre-Merge Checklist

  • Updated relevant documentation and README (if needed)
  • Added/updated tests (if needed)
  • Noted breaking changes (if any)
  • Validated on required platforms/methods:
    • MacOS
      • npm run
      • npx
      • Docker
      • Podman
      • Seatbelt
    • Windows
      • npm run
      • npx
      • Docker
    • Linux
      • npm run
      • npx
      • Docker

@dewitt dewitt requested a review from a team as a code owner February 26, 2026 15:25
@gemini-code-assist
Copy link
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@gemini-cli gemini-cli bot added the area/platform Issues related to Build infra, Release mgmt, Testing, Eval infra, Capacity, Quota mgmt label Feb 26, 2026
@dewitt dewitt marked this pull request as draft February 26, 2026 15:41
@dewitt dewitt force-pushed the fix/disable-fork-workflows branch from 77be169 to 9441dae Compare February 26, 2026 15:41
@dewitt dewitt marked this pull request as ready for review February 26, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/platform Issues related to Build infra, Release mgmt, Testing, Eval infra, Capacity, Quota mgmt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable expensive and scheduled workflows on personal forks

1 participant