From 6e70c9d09409cb3b99d9f9fad156d8b52e7e8df2 Mon Sep 17 00:00:00 2001 From: peelz Date: Wed, 12 Oct 2022 23:33:17 -0400 Subject: [PATCH] Add workflow for updating MoonSharp --- .github/workflows/update-moonsharp.yml | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/update-moonsharp.yml diff --git a/.github/workflows/update-moonsharp.yml b/.github/workflows/update-moonsharp.yml new file mode 100644 index 000000000..274a5915c --- /dev/null +++ b/.github/workflows/update-moonsharp.yml @@ -0,0 +1,33 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + +name: Update MoonSharp + +on: + workflow_dispatch: + +env: + SUBMODULE_PATH: Libraries/moonsharp + GIT_USER_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com" + GIT_USER_NAME: "github-actions[bot]" + +jobs: + update-moonsharp: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Update submodule + run: git submodule update --recursive --remote "$SUBMODULE_PATH" + + - name: Create commit + run: | + git config user.name "$GIT_USER_NAME" + git config user.email "$GIT_USER_EMAIL" + git commit -am "Update submodule: $SUBMODULE_PATH" + + - name: Push + run: git push