From 3977aa4559e563fea76bd6a1647821d8dffc6692 Mon Sep 17 00:00:00 2001 From: Weiqi Gao Date: Fri, 29 Dec 2023 09:15:07 +0800 Subject: [PATCH] Enable call from another workflow --- .github/workflows/build-electron.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-electron.yml b/.github/workflows/build-electron.yml index 4c7b84b..cd8b529 100644 --- a/.github/workflows/build-electron.yml +++ b/.github/workflows/build-electron.yml @@ -13,7 +13,7 @@ on: - "main" paths: - "um-react" - - ".github/workflows/build-electron.yml" + workflow_call: permissions: contents: write @@ -116,7 +116,7 @@ jobs: upload-release: name: Upload Release runs-on: ubuntu-latest - if: ${{ inputs.release || github.event_name == 'push' }} + if: ${{ inputs.release || github.event_name == 'push' || github.event_name == 'workflow_call' }} needs: [build-linux-windows, build-macos] steps: - name: Download release files