浏览代码

pkg: Allow triggering a CI run manually

This will only build the kernel, sign it and upload it as an artifact.
Useful for testing changes.
Dorian Stoll 1 年之前
父节点
当前提交
30c9a9caa5
共有 4 个文件被更改,包括 16 次插入0 次删除
  1. 4 0
      .github/workflows/arch.yml
  2. 4 0
      .github/workflows/debian.yml
  3. 4 0
      .github/workflows/fedora-37.yml
  4. 4 0
      .github/workflows/fedora-38.yml

+ 4 - 0
.github/workflows/arch.yml

@@ -7,6 +7,9 @@ on:
   push:
     tags:
       - 'arch-*'
+
+  repository_dispatch:
+  workflow_dispatch:
   
 jobs:
   build:
@@ -68,6 +71,7 @@ jobs:
 
   release:
     name: Publish release
+    if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
     needs: [build]
     runs-on: ubuntu-latest
     steps:

+ 4 - 0
.github/workflows/debian.yml

@@ -8,6 +8,9 @@ on:
     tags:
       - 'debian-*'
 
+  repository_dispatch:
+  workflow_dispatch:
+
 jobs:
   build:
     name: Build Kernel
@@ -68,6 +71,7 @@ jobs:
 
   release:
     name: Publish release
+    if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
     needs: [build]
     runs-on: ubuntu-latest
     steps:

+ 4 - 0
.github/workflows/fedora-37.yml

@@ -9,6 +9,9 @@ on:
     tags:
       - 'fedora-37-*'
 
+  repository_dispatch:
+  workflow_dispatch:
+
 jobs:
   build:
     name: Build Kernel
@@ -69,6 +72,7 @@ jobs:
 
   release:
     name: Publish release
+    if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
     needs: [build]
     runs-on: ubuntu-latest
     steps:

+ 4 - 0
.github/workflows/fedora-38.yml

@@ -9,6 +9,9 @@ on:
     tags:
       - 'fedora-38-*'
 
+  repository_dispatch:
+  workflow_dispatch:
+
 jobs:
   build:
     name: Build Kernel
@@ -69,6 +72,7 @@ jobs:
 
   release:
     name: Publish release
+    if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
     needs: [build]
     runs-on: ubuntu-latest
     steps: