Add GitHub Actions workflow to automate metashade submodule updates#81
Draft
Add GitHub Actions workflow to automate metashade submodule updates#81
Conversation
Co-authored-by: ppenenko <1525958+ppenenko@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Automate updates of the
Add GitHub Actions workflow to automate metashade submodule updates
Sep 29, 2025
metashade submodule
Member
|
What happens if Metashade is updated again, after a PR has been created with this workflow? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 implements an automated workflow to keep the
metashadesubmodule up-to-date whenever changes are pushed tometashade/main.Problem
Previously, the
metashadesubmodule had to be manually updated whenever new changes were available in the upstream repository. This led to potential delays in incorporating important fixes and improvements, and required manual intervention to keep the glTF sample project synchronized.Solution
Added a comprehensive GitHub Actions workflow that automatically:
metashade/mainKey Features
Smart Update Detection
The workflow only creates PRs when actual updates are needed, avoiding unnecessary noise:
Multiple Trigger Methods
metashade/main(recommended)Detailed PR Information
Generated PRs include:
Files Added
.github/workflows/update-metashade-submodule.yml- Main automation workflow.github/SUBMODULE_UPDATE_SETUP.md- Complete setup documentation.github/metashade-repository-workflow-example.yml- Example trigger workflow for metashade repoSetup Required
To enable repository dispatch triggering (most responsive method):
metashade/metashaderepositoryGLTF_SAMPLE_DISPATCH_TOKENsecret in metashade repo with appropriate permissionsTesting
The workflow has been validated with:
Once merged, this will ensure the glTF sample project automatically stays current with metashade developments, reducing maintenance overhead and improving project synchronization.
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.