From 49e4bc7d643902b1d8ce141c679011c06bf32c45 Mon Sep 17 00:00:00 2001 From: MistEO Date: Wed, 29 Oct 2025 15:42:10 +0800 Subject: [PATCH] ci: update submodules --- .github/workflows/update-submodules.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 0000000000..a55621c897 --- /dev/null +++ b/.github/workflows/update-submodules.yml @@ -0,0 +1,24 @@ +name: Submodules Update + +on: + schedule: + - cron: "50 21 * * *" # Runs daily at 21:50 UTC (before `Release Pipeline (Nightly OTA)`) + workflow_dispatch: + +jobs: + update-submodules: + runs-on: ubuntu-latest + if: github.repository_owner == 'MaaAssistantArknights' + steps: + - uses: actions/checkout@v5 + + - run: | + git submodule update --remote src/MaaMacGui + git submodule update --remote src/maa-cli + + - name: Commit & Push changes + uses: actions-js/push@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + message: "feat: Update Submodules MaaMacGui, maa-cli" + branch: dev