Skip to content

Conversation

@atyshka
Copy link

@atyshka atyshka commented Nov 14, 2025

What this does

This adds conditionals to all github actions to skip them on forked repos. My fork kept trying to run actions nightly and when I'd sync changes to main. This adds a check to only do so within this repo.

How it was tested

Requires testing on the Huggingface repo

Copilot AI review requested due to automatic review settings November 14, 2025 17:50
Copilot finished reviewing on behalf of atyshka November 14, 2025 17:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds repository ownership checks to all GitHub Actions workflows to prevent them from running on forked repositories. This is a common pattern to avoid unnecessary workflow executions (and potential failures due to missing secrets) when users fork the repository.

  • Adds if: github.repository == 'huggingface/lerobot' conditions to all workflow jobs
  • Ensures workflows only execute in the main Hugging Face repository, not in forks
  • Prevents resource consumption and potential errors on forked repositories

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
.github/workflows/unbound_deps_tests.yml Added repository checks to all jobs (full-tests, build-and-push-docker, gpu-tests, delete-unbound-image)
.github/workflows/stale.yml Added repository check to stale issue/PR cleanup job
.github/workflows/security.yml Added repository check to TruffleHog secret scanning job
.github/workflows/release.yml Added repository checks to build-and-publish and test-release jobs
.github/workflows/quality.yml Added repository check to pre-commit checks job
.github/workflows/nightly.yml Added repository checks to all nightly build and test jobs
.github/workflows/full_tests.yml Added repository checks to all jobs, integrated with existing conditionals
.github/workflows/fast_tests.yml Added repository check to fast pytest tests job
.github/workflows/documentation.yml Added repository checks to documentation build jobs
.github/workflows/documentation-upload-pr.yml Added repository check to PR documentation upload job

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

1 participant