From fe117d22d00acacbcc613a6e8805e3356c7be399 Mon Sep 17 00:00:00 2001 From: Weiqi Gao Date: Thu, 19 Dec 2024 09:37:34 +0800 Subject: [PATCH] Update build-electron.yml to commit on workflow_call --- .github/workflows/build-electron.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-electron.yml b/.github/workflows/build-electron.yml index 1d04ba6..cdd3725 100644 --- a/.github/workflows/build-electron.yml +++ b/.github/workflows/build-electron.yml @@ -18,6 +18,9 @@ on: commit: type: string default: main + release: + type: boolean + default: false permissions: contents: write @@ -135,6 +138,6 @@ jobs: file: ${{ needs.build-linux-windows.outputs.version }}/* tag: ${{ needs.build-linux-windows.outputs.version }} body: Release ${{ needs.build-linux-windows.outputs.version }} - target_commit: ${{ github.event_name == 'repository_dispatch' && inputs.commit || github.sha }} + target_commit: ${{ inputs.commit || github.sha }} overwrite: true file_glob: true