2024/04/27 ~ 2024/05/03 のもくもく日記
もくもく 前回までは
2024/04/20 ~ 2024/04/26 のもくもく日記 をご覧ください。
途中経過
その1
GitHub Actions のWindows ランナーは "Bash" の記述があるので、実は使えるっぽい 👀
https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md
ただ、下記のあたりで色々とハマったorz
- Windows ランナーでパス指定すると、扱いが違うからエラーになった
- macOS ランナーのBash バージョンが古いため、入力された文字列を全て小文字に変換する
${TEXT,,}
が使えなかった
その2
GitHub Actions の自作方法、このトレーニングが分かりやすいかもw
カスタム GitHub アクションを作成して公開する - Training | Microsoft Learn
その3
GitHub Actions の組み込み関数 fromJson(...)
をBash で使ってみたのだけど、
JSON 内の文字列に "
が入っている場合、
echo "${{ fromJson(...) }}"
とすると、
JSON の "
に引っ掛かって echo
の処理が中断されてしまったorz
これはBash の文字列の仕様に起因すると思われるので、
諦めて shell
を ruby
に変更して対応した。
今回の進捗
※関連SNS
- https://x.com/shion_engineer/status/1784059730304086233
- https://x.com/shion_engineer/status/1784066062138622306
- https://x.com/shion_engineer/status/1784124087507546544
- https://x.com/shion_engineer/status/1784134996904890833
- https://x.com/shion_engineer/status/1784432111182905732
- https://x.com/shion_engineer/status/1784474286926995847
- https://x.com/shion_engineer/status/1784476628204290394
- https://x.com/shion_engineer/status/1784864555388002694
- https://x.com/shion_engineer/status/1785973538949644323