ソースを参照

fix: workflow on

zijiren233 9 ヶ月 前
コミット
ab5cd78e47

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

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

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

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

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

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