zijiren233 9 месяцев назад
Родитель
Сommit
ab5cd78e47
3 измененных файлов с 21 добавлено и 9 удалено
  1. 7 2
      .github/workflows/check-semgrep.yml
  2. 6 7
      .github/workflows/ci.yml
  3. 8 0
      .github/workflows/release.yml

+ 7 - 2
.github/workflows/check-semgrep.yml

@@ -2,16 +2,21 @@
 name: Check-Semgrep
 
 on:
+  workflow_call:
   workflow_dispatch:
   schedule:
     - cron: 0 0 * * *
   push:
-    branches: ["main"]
+    branches:
+      - "**"
+    tags:
+      - "v*.*.*"
     paths-ignore:
       - "**/*.md"
       - "**/*.yaml"
   pull_request:
-    branches: ["*"]
+    branches:
+      - "**"
     paths-ignore:
       - "**/*.md"
       - "**/*.yaml"

+ 6 - 7
.github/workflows/ci.yml

@@ -3,18 +3,17 @@ name: CI
 on:
   workflow_call:
   workflow_dispatch:
-    inputs:
-      push_mage:
-        description: 'Push images'
-        required: false
-        type: boolean
   push:
-    branches: [ "main" ]
+    branches:
+      - "**"
+    tags:
+      - "v*.*.*"
     paths-ignore:
       - "**/*.md"
       - "**/*.yaml"
   pull_request:
-    branches: [ "*" ]
+    branches:
+      - "**"
     paths-ignore:
       - "**/*.md"
       - "**/*.yaml"

+ 8 - 0
.github/workflows/release.yml

@@ -6,7 +6,15 @@ on:
       - "**"
     tags:
       - "v*.*.*"
+    paths-ignore:
+      - "**/*.md"
+      - "**/*.yaml"
   pull_request:
+    branches:
+      - "**"
+    paths-ignore:
+      - "**/*.md"
+      - "**/*.yaml"
 
 env:
   DOCKERHUB_REPO: ${{ secrets.DOCKERHUB_USERNAME != '' && format('{0}/{1}', secrets.DOCKERHUB_USERNAME, 'aiproxy') || '' }}