Commit 366cc68
chore(ci): refresh vended v3/languages responses hourly
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>1 parent 16178cf commit 366cc68
1 file changed
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
0 commit comments