Skip to content

GitSubmoduleの更新にdependabotを使用する #198

@yamachu

Description

@yamachu

ref: #27

dependabotでどうやらGitSubmoduleの更新も行えるようだ
現在は以下のようなworkflowで更新を行なっている

https://github.com/yamachu/VoicevoxCoreSharp/blob/main/.github/workflows/submodule_tracker.yml

このworkflowで行なっているのは

  • 特定の時間に
  • submoduleを更新し
  • コード生成でdiffがあったら失敗
  • なかったらcommit hashをコードに埋め込みcommit & push

を行なっている

この後段の処理は以下のドキュメントのような方法をとれば出来そう

https://docs.github.com/ja/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions

これにより、pull requestのdescriptionに変更のサマリーが追加されるなど、差分を追うのか楽になるかもしれない

とは言え、dispatchで更新を起動させるのが出来ないし、voicevox_coreのコミットは綺麗にまとまっているのもあり、わざわざdependabotを使わずともfile changesを見れば十分というのもある

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions