From 3f3f9d6ba264abf79eecfadd4b00e1598766670d Mon Sep 17 00:00:00 2001 From: Shae Date: Mon, 11 Dec 2023 09:44:19 -0800 Subject: [PATCH] Added workflow to update submodules --- .github/workflows/update_submodules.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/update_submodules.yml diff --git a/.github/workflows/update_submodules.yml b/.github/workflows/update_submodules.yml new file mode 100644 index 0000000..18d3311 --- /dev/null +++ b/.github/workflows/update_submodules.yml @@ -0,0 +1,20 @@ +name: "Misc/Update Submodules" +on: + workflow_dispatch: + +jobs: + update-submodules: + name: "Update submodules" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: "Pull and update submodules" + run: | + git submodule update --init --recursive + git submodule update --recursive --remote + - name: "Commit and push changes" + run: | + git config user.email 41898282+github-actions[bot]@users.noreply.github.com + git config user.name github-actions + git commit -am "Updated submodules" + git push \ No newline at end of file