From 1d8745cb8953c8a3d380dd7add32220ca3b6e3e9 Mon Sep 17 00:00:00 2001 From: pat-trunk-io Date: Wed, 28 Aug 2024 23:09:53 -0700 Subject: [PATCH] (Feat): Add git submodule action (#856) Add hook to update submodule on git hooks --- actions/submodules/plugin.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 actions/submodules/plugin.yaml diff --git a/actions/submodules/plugin.yaml b/actions/submodules/plugin.yaml new file mode 100644 index 000000000..dcae26219 --- /dev/null +++ b/actions/submodules/plugin.yaml @@ -0,0 +1,10 @@ +version: 0.1 +actions: + definitions: + - id: submodule-init-update + display_name: Submodule Init Update + description: Git hook for updating submodules + run: git submodule update --init --recursive + triggers: + - git_hooks: [post-checkout, post-merge, pre-rebase] + notify_on_error: false