Enable call from another workflow

This commit is contained in:
Weiqi Gao 2023-12-29 09:15:07 +08:00 committed by GitHub
parent d2824df2b9
commit 3977aa4559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ on:
- "main" - "main"
paths: paths:
- "um-react" - "um-react"
- ".github/workflows/build-electron.yml" workflow_call:
permissions: permissions:
contents: write contents: write
@ -116,7 +116,7 @@ jobs:
upload-release: upload-release:
name: Upload Release name: Upload Release
runs-on: ubuntu-latest 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] needs: [build-linux-windows, build-macos]
steps: steps:
- name: Download release files - name: Download release files