Add GitHub Actions workflow for updating static web assets baselines #49730
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.
This PR adds a GitHub Actions workflow that automates the process of updating static web assets baselines for pull requests, eliminating the need for manual intervention by developers.
Features
The workflow (
update-static-web-assets-baselines.yml
) provides:./build.sh -c Release
src/RazorSdk/update-test-baselines.sh
Usage
Developers can trigger the workflow using GitHub CLI:
Workflow Behavior
The workflow provides clear feedback through PR comments:
Error Handling
The workflow includes comprehensive error handling for:
Each failure scenario provides specific error messages to help developers diagnose issues.
Implementation Details
The workflow follows established patterns in the repository:
actions/checkout@v4
for repository accesscontinue-on-error
for graceful failure handling[Infrastructure] Update baselines YYYY-MM-DD
This automation significantly streamlines the baseline update process, reducing manual overhead and potential errors while maintaining consistency across the development workflow.
Fixes #49729.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.