From 2a2c6c80d5657f5a56055f384b52050bb2dbd92d Mon Sep 17 00:00:00 2001 From: Loong <40141251+wangl-cc@users.noreply.github.com> Date: Sun, 29 Dec 2024 16:46:25 +0000 Subject: [PATCH] ci: use submodules for maa-cli if not in a pull request The event_name when called by other workflows is not workflow_call, but the event_name of the workflow that called it. So we should use github.event_name != 'pull_request' instead. --- .github/workflows/publish-sync.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-sync.yml b/.github/workflows/publish-sync.yml index ba46ad74..c5003e24 100644 --- a/.github/workflows/publish-sync.yml +++ b/.github/workflows/publish-sync.yml @@ -36,8 +36,8 @@ jobs: token: ${{ secrets.MAA_HOMEBREW_BUMP_PR }} repository: MaaAssistantArknights/MaaAssistantArknights ref: dev - - name: Update Submodule (Workflow Call) - if: github.event_name == 'workflow_call' + - name: Update Submodule + if: github.event_name != 'pull_request' working-directory: src/maa-cli run: | git submodule init .