ci: auto-update workflow for new VSCode releases#4
Merged
Conversation
Daily cron at 10:42 UTC + manual dispatch. Resolves Microsoft's /latest/linux-<arch>/stable redirect for each of the three supported arches, compares the SHA against what the recipe pins, and if they differ: - downloads all three tarballs - recomputes sha256s - re-extracts LICENSES.chromium.html and re-computes its md5 - pulls the human-readable version out of resources/app/package.json - renames the recipe to vscode_<version>.bb and rewrites GIT_SHA, TIMESTAMP-*, SRC_URI[*.sha256sum] and the license md5 - opens a PR on a branch named auto-update/vscode-<version> Skips silently if the SHA already matches, or if a branch for that version already exists (assume a prior run's PR is still pending review). PRs are left for human review on purpose: bumping an opaque proprietary binary blob is exactly the case where a human eye on the diff is worth more than fully-automatic merge.
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.
Adds .github/workflows/auto-update.yml. Daily cron at 10:42 UTC plus manual dispatch.
What it does:
PRs are left for human review intentionally — automated bumps of opaque binary blobs are exactly the case where a human eye on the diff is valuable. CI will run the multi-arch parse + fetch matrix and the end-to-end scarthgap build on the PR so reviewers see green before merging.
GITHUB_TOKEN with contents:write + pull-requests:write is sufficient; no secrets needed.