Skip to content

Conversation

@sfc-gh-bnisco
Copy link
Contributor

@sfc-gh-bnisco sfc-gh-bnisco commented Jan 13, 2026

TL;DR

Add two GitHub Actions workflows to automate component gallery maintenance: a weekly refresh pipeline and a validation workflow for component definitions.

What changed?

  • Added .github/workflows/run-refresh-pipeline.yml that:

    • Runs weekly on Monday at 03:00 UTC (Sunday evening PT)
    • Can be manually triggered with configurable options
    • Executes the pipeline refresh script
    • Creates a PR with the changes if any are detected
    • Includes concurrency controls to prevent multiple runs
  • Added .github/workflows/validate-component-definitions.yml that:

    • Runs on PRs targeting the master branch
    • Triggers only when files in directory/components/** are changed
    • Validates component definitions using the validation script

How to test?

  1. For the refresh pipeline:

    • Manually trigger the workflow from the Actions tab
    • Optionally configure the input parameters (no_images, allow_enrich_failures, extra_args)
    • Verify a PR is created with the pipeline changes
  2. For the validation workflow:

    • Create a PR that modifies files in the directory/components/ directory
    • Verify the validation workflow runs automatically

Why make this change?

These workflows automate critical maintenance tasks for the component gallery:

  • The weekly refresh ensures component data stays current without manual intervention
  • The validation workflow prevents invalid component definitions from being merged
  • Both workflows improve reliability and reduce manual maintenance overhead

@sfc-gh-bnisco
Copy link
Contributor Author

sfc-gh-bnisco commented Jan 13, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

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

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 GitHub Actions workflows to automate component gallery maintenance by introducing a weekly refresh pipeline and a validation workflow for component definitions.

Changes:

  • Added a weekly scheduled workflow to automatically refresh component gallery data and create PRs
  • Added a validation workflow to ensure component definitions are valid before merging
  • Configured workflows with appropriate permissions, triggers, and concurrency controls

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 8 comments.

File Description
.github/workflows/run-refresh-pipeline.yml Weekly scheduled workflow that runs the refresh pipeline script, detects changes, and creates/updates a PR with the results
.github/workflows/validate-component-definitions.yml PR validation workflow that runs when component definition files are modified, ensuring they pass validation checks

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

@sfc-gh-bnisco sfc-gh-bnisco force-pushed the 01-13-_feat_add_gh_workflows branch from 5a342eb to be2b7ad Compare January 16, 2026 17:50
@sfc-gh-bnisco sfc-gh-bnisco force-pushed the 01-13-_feat_add_component_directory_scripts branch from 11f9985 to c290ecc Compare January 16, 2026 17:50
@sfc-gh-bnisco sfc-gh-bnisco requested a review from Copilot January 16, 2026 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

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


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

@sfc-gh-bnisco sfc-gh-bnisco force-pushed the 01-13-_feat_add_component_directory_scripts branch from c290ecc to 648f054 Compare January 16, 2026 18:13
@sfc-gh-bnisco sfc-gh-bnisco force-pushed the 01-13-_feat_add_gh_workflows branch from be2b7ad to 612ecd1 Compare January 16, 2026 18:13
@sfc-gh-bnisco sfc-gh-bnisco requested a review from Copilot January 16, 2026 18:14
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

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


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

@sfc-gh-bnisco sfc-gh-bnisco force-pushed the 01-13-_feat_add_component_directory_scripts branch from 648f054 to afb4c3d Compare January 16, 2026 18:24
@sfc-gh-bnisco sfc-gh-bnisco force-pushed the 01-13-_feat_add_gh_workflows branch from 612ecd1 to 53e7d2e Compare January 16, 2026 18:24
@sfc-gh-bnisco sfc-gh-bnisco force-pushed the 01-13-_feat_add_component_directory_scripts branch from afb4c3d to a6e0687 Compare January 16, 2026 18:32
@sfc-gh-bnisco sfc-gh-bnisco force-pushed the 01-13-_feat_add_gh_workflows branch from 53e7d2e to 5bd5d8e Compare January 16, 2026 18:32
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.

2 participants