chore(ci): refresh vended v3/languages responses hourly#348
Draft
daniel-jones-dev wants to merge 1 commit into
Draft
chore(ci): refresh vended v3/languages responses hourly#348daniel-jones-dev wants to merge 1 commit into
daniel-jones-dev wants to merge 1 commit into
Conversation
4 tasks
1c71aae to
f8ab188
Compare
2b7b018 to
16178cf
Compare
Adds .github/workflows/refresh-v3-languages.yml: an hourly cron (plus manual workflow_dispatch) that runs scripts/fetch_v3_languages.py against api.deepl.com using the DEEPL_API_KEY repo secret, then uses peter-evans/create-pull-request@v6 to open (and update in place) a PR against main whenever data/v3-languages/** changes. A concurrency group guards against cron + manual runs racing for the same branch. peter-evans behavior on subsequent runs: - Responses unchanged: the action compares trees, not commit SHAs, so a fresh timestamp alone does not cause a push. Branch is left as-is. - Responses changed: the branch is force-pushed with a new single squashed commit so the diff against main always represents the current API state in one reviewable chunk. - Responses now match main (typically right after the PR was merged): the action closes the PR and deletes the branch. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
304b00e to
366cc68
Compare
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.
Summary
.github/workflows/refresh-v3-languages.yml.0 * * * *) plusworkflow_dispatchfor manual runs.scripts/fetch_v3_languages.pywith theDEEPL_API_KEYrepo secret bound toDEEPL_AUTH_KEY.peter-evans/create-pull-request@v6opens a PR againstmainonly whendata/v3-languages/**has changed.Stacked on #347 — base is
vend-v3-languages, will retarget tomainonce that merges.Before merging
DEEPL_API_KEYrepo secret with a Pro key that can reachhttps://api.deepl.com/v3/languages.workflow_dispatch) to verify the PR flow.Test plan
data/v3-languages/.chore/refresh-v3-languages) and force-update it.🤖 Generated with Claude Code