Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip CI build for auto-generated PRs #24

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

ksharma-xyz
Copy link
Owner

@ksharma-xyz ksharma-xyz commented Feb 6, 2025

TL;DR

Skip CI builds for auto-generated PRs and add auto-generated label to automated PRs

What changed?

  • Added condition to skip CI builds when PR has 'auto-generated' label
  • Added 'auto-generated' label to automated PRs created by GitHub Actions

How to test?

  1. Create a PR with the 'auto-generated' label
  2. Verify that CI build is skipped
  3. Verify that automated PRs get labeled as 'auto-generated'

Why make this change?

Prevents unnecessary CI builds on auto-generated content, saving compute resources and reducing pipeline execution time. This is particularly useful for PRs that contain automatically generated data files which don't require traditional CI validation.

@ksharma-xyz ksharma-xyz changed the title Do not run ci on auto-generated prs Skip CI build for auto-generated PRs Feb 6, 2025
Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ksharma-xyz ksharma-xyz marked this pull request as ready for review February 6, 2025 10:38
@ksharma-xyz ksharma-xyz merged commit 0e67c45 into main Feb 6, 2025
6 checks passed
@ksharma-xyz ksharma-xyz deleted the 02-06-do_not_run_ci_on_auto-generated_prs branch February 6, 2025 10:42
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