NISHIO Hirokazu[English][日本語]

etude-github-actions

https://github.com/nishio/etude-github-actions

I didn't know anything about Github Action, so I made it as a practice.

Explanation of what we do

  • Create Deno and Python environment
  • JSON export from Scrapbox with Deno
  • Translate with [DeepL API
  • Diff with previous JSON
    • import sometimes fails (A), so I tried just the update diff instead of the whole JSON
    • https://github.com/nishio/etude-github-actions/blob/main/diff_json.py
    • The reason for this is that, especially in the early stages of development, there were changes in the translation without updating the original data due to changes in the system, so we did not filter by the date of update.
  • Commit latest JSON and translated JSON
  • Import translation difference JSON to Scrapbox
    • I tried to do a Python port because I couldn't figure out the cause of the problem, but eventually solved it by updating the diff.

Notation shaking github-action-etude×.

[/blu3mo/Scrapbox Translator v3](https://scrapbox.io/blu3mo/Scrapbox Translator v3)


This page is auto-translated from /nishio/etude-github-actions using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.


(C)NISHIO Hirokazu / Converted from Markdown (en)
Source: [GitHub] / [Scrapbox]