diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0ce98e64d..469d73e87 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -116,7 +116,7 @@ jobs: shell: bash - name: Release - if: ${{ github.event.inputs.tag != '' }} + if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag != '' }} uses: softprops/action-gh-release@v2 with: tag_name: ${{ github.event.inputs.tag }} @@ -150,32 +150,32 @@ jobs: uses: ./.github/workflows/ios.yml permissions: write-all with: - tag: github.event.inputs.tag + tag: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || '' }} mac: if: ${{ github.event_name == 'pull_request' || github.event.inputs.build_mac == 'true' }} uses: ./.github/workflows/mac.yml permissions: write-all with: - tag: github.event.inputs.tag + tag: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || '' }} win_x64: if: ${{ github.event_name == 'pull_request' || github.event.inputs.build_win_x64 == 'true' }} uses: ./.github/workflows/win_x64.yml permissions: write-all with: - tag: github.event.inputs.tag + tag: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || '' }} linux_x64: if: ${{ github.event_name == 'pull_request' || github.event.inputs.build_linux_x64 == 'true' }} uses: ./.github/workflows/linux_x64.yml permissions: write-all with: - tag: github.event.inputs.tag + tag: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || '' }} linux_arm64: if: ${{ github.event_name == 'pull_request' || github.event.inputs.build_linux_arm64 == 'true' }} uses: ./.github/workflows/linux_arm64.yml permissions: write-all with: - tag: github.event.inputs.tag + tag: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || '' }}