Skip to content

Commit

Permalink
ci: use submodules for maa-cli if not in a pull request
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wangl-cc committed Dec 29, 2024
1 parent a6b432f commit 2a2c6c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down

0 comments on commit 2a2c6c8

Please sign in to comment.