Add workflow to deploy hl7-diff dist artifact into source/diff/#1
Merged
Add workflow to deploy hl7-diff dist artifact into source/diff/#1
dist artifact into source/diff/#1Conversation
Agent-Logs-Url: https://github.com/brianpos/web-source/sessions/77e4f136-5898-4046-8549-cbf5ef79ee66 Co-authored-by: brianpos <1557083+brianpos@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
brianpos
April 28, 2026 05:31
View session
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.
Automates what was previously a manual copy of the
dist/output frombrianpos/hl7-diffintosource/diff/of this repo (as done in commit 226d494). Implemented as Option A (this repo pulls the artifact) with no third-party action dependencies, and parameterized so the caller picks which branch receives the update.Changes
.github/workflows/update-diff.ymlworkflow_dispatchonly — the Run workflow dropdown selects the target branch, and the commit is pushed back to that same branch (HEAD:${{ github.ref_name }}), somainor any feature branch works.source_run_idinput — blank uses the latest successfulBuildrun onhl7-diff@main; a specific id pins to that build.distartifact, wipessource/diff/to avoid stale Vite-hashed filenames, copies the new contents in, commits, and pushes. No-op exit when there's no diff.Dependencies
actions/checkout@v4and the preinstalledghCLI (authenticated with the defaultGITHUB_TOKEN).contents: writepermission covers the push.Example
Notes for review
source/diff/is fully replaced on each run; if anything outside the artifact is intentionally kept there, the wipe step needs scoping.github-actions[bot]; switch to a different identity if branch-protection rules require a real user.