浏览代码

Allow manual worklfow triggering with invalid version

Armin Schrenk 3 年之前
父节点
当前提交
c0ee8ec3fc
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      .github/workflows/build.yml

+ 2 - 1
.github/workflows/build.yml

@@ -1,7 +1,7 @@
 name: Build
 
 on:
-  [push]
+  [push, workflow_dispatch]
 
 env:
   JAVA_VERSION: 16
@@ -46,6 +46,7 @@ jobs:
     name: Build ${{ matrix.profile }}-buildkit
     needs: test
     runs-on: ${{ matrix.os }}
+    if: startsWith(github.ref, 'refs/tags/') && github.repository == 'cryptomator/cryptomator' || github.event_name == 'workflow_dispatch'
     strategy:
       fail-fast: true
       matrix: