Repository navigation
CI: hourly Canvas App pin check (like Copper's canvas.yml) - #6
Open
collinrijock wants to merge 1 commit into
Open
collinrijock wants to merge 1 commit into
collinrijock wants to merge 1 commit into
Conversation
.github/workflows/canvas-app.yml: - pull requests touching the vendored page, its pin or the sync script run packaging/sync-canvas-app.sh --check; - hourly (and by hand) it pins canvas-app main; when the web build changed it pushes canvas/take-canvas-app (only when that branch's tree differs) and opens or updates the issue "Canvas: canvas-app moved on" with the commit list and a link that opens the PR, since the org bars Actions from opening pull requests; once main has caught up it closes the issue. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 adds an hourly Canvas App pin check,
.github/workflows/canvas-app.yml, modelled on Copper's.github/workflows/canvas.ymlwith copper-cloud's paths. It is stacked on #5, which adds the pin andpackaging/sync-canvas-app.sh.Pull requests that touch
crates/copper-cloud/assets/canvas-app.html,CANVAS_APP_REF,packaging/sync-canvas-app.shor this workflow runpackaging/sync-canvas-app.sh --check, which fails if the vendored page is not the pinned build.Hourly (at :23), and on demand through
workflow_dispatch, the workflow pins canvas-appmainon top ofmain. A canvas-app commit that leavesdist/web/index.htmlunchanged keeps the pin. When the page has changed, the workflow:canvas/take-canvas-app;Once
mainhas caught up, the workflow closes the issue.Permissions:
contents: readby default; the bump job getscontents: writeandissues: write.I checked the pin/compare step locally. On #5's first commit (pin
62228f5) it reportschanged=true, and on #5's head (c425198) it reportschanged=falseand leaves the tree clean.🤖 Generated with Claude Code