Add workflow to auto-update action hash references on push to main#14
Merged
Add workflow to auto-update action hash references on push to main#14
Conversation
Agent-Logs-Url: https://github.com/markgaze/automation/sessions/602eb6fd-d3f5-466c-8c4c-292463333d7c Co-authored-by: markgaze <16718355+markgaze@users.noreply.github.com>
…aracter Agent-Logs-Url: https://github.com/markgaze/automation/sessions/602eb6fd-d3f5-466c-8c4c-292463333d7c Co-authored-by: markgaze <16718355+markgaze@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
markgaze
April 22, 2026 15:04
View session
markgaze
approved these changes
Apr 22, 2026
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.
When
bump/action.ymlorformat/action.ymlchanges onmain, the pinned commit SHA referenced in the corresponding reusable workflow (bump.yml/format.yml) needs to be manually updated — this automates that.Changes
.github/workflows/update-action-hashes.ymlpushtomainscoped tobump/action.ymlandformat/action.ymlHEAD~1..HEADto detect which action file changed, then patches only the corresponding workflow filemarkgaze/automation/{bump,format}@<40-char-hex>with the triggering commit SHA viasedupdate-action-hashesviapeter-evans/create-pull-requestExample
After a push to
mainthat modifiesbump/action.yml, the workflow rewrites: