mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
* feat(MaaUnified): MaaUnified构建完成,作为submodule加入 * fix(MaaUnified): 修复自动构建时 submodule拉取错误问题 * feat(MaaUnified): MaaUnified submodule更换为组织仓库 * ci: do not fetch useless module --------- Co-authored-by: MistEO <mistereo@hotmail.com>
33 lines
959 B
YAML
33 lines
959 B
YAML
name: Submodule Update
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "50 21 * * *" # Runs daily at 21:50 UTC (before `Release Pipeline (Nightly OTA)`)
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update-submodules:
|
|
name: Update Submodules
|
|
runs-on: ubuntu-latest
|
|
if: github.repository_owner == 'MaaAssistantArknights'
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Update submodules
|
|
shell: bash
|
|
run: bash ./.github/scripts/sync-optional-submodules.sh --remote src/MAAUnified src/MaaMacGui src/maa-cli
|
|
|
|
- name: Commit and push changes
|
|
uses: actions-js/push@master
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
message: "feat: Update Submodules MAAUnified, MaaMacGui, maa-cli
|
|
|
|
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
|
|
[skip changelog]"
|
|
branch: ${{ github.ref }}
|