Explorar o código

chore(CI): update events that trigger workflows

zhanghongtong %!s(int64=5) %!d(string=hai) anos
pai
achega
ee776c5099

+ 2 - 9
.github/workflows/build_packages.yaml

@@ -1,16 +1,14 @@
 name: Cross build packages
 
 on:
+  schedule:
+    - cron:  '0 */6 * * *'
   push:
     tags:
       - v*
   release:
     types:
       - published
-  pull_request:
-  workflow_dispatch:
-  repository_dispatch:
-    types: [run_actions]
 
 jobs:
   windows:
@@ -71,8 +69,6 @@ jobs:
   mac:
     runs-on: macos-10.15
 
-    if: startsWith(github.ref, 'refs/tags/')
-
     steps:
     - uses: actions/checkout@v1
     - name: prepare
@@ -203,7 +199,6 @@ jobs:
         done
         cd -
     - name: build emqx packages
-      if: (matrix.arch  == 'amd64' && matrix.emqx == 'emqx') || startsWith(github.ref, 'refs/tags/')
       env:
         ERL_OTP: erl23.2.2
         EMQX: ${{ matrix.emqx }}
@@ -246,8 +241,6 @@ jobs:
   docker:
     runs-on: ubuntu-20.04
 
-    if: startsWith(github.ref, 'refs/tags/')
-
     strategy:
       matrix:
         arch:

+ 3 - 3
.github/workflows/check_deps_integrity.yaml

@@ -5,9 +5,9 @@ on: [pull_request]
 jobs:
   check_deps_integrity:
     runs-on: ubuntu-20.04
+    container: emqx/build-env:erl23.2.2-ubuntu20.04
+
     steps:
       - uses: actions/checkout@v2
       - name: Run check-deps-integrity.escript
-        run: |
-          docker run --rm -v "$(pwd):/emqx" emqx/build-env:erl23.2.2-ubuntu20.04 sh -c 'cd /emqx && ./scripts/check-deps-integrity.escript'
-
+        run: ./scripts/check-deps-integrity.escript

+ 0 - 3
.github/workflows/run_cts_tests.yaml

@@ -8,9 +8,6 @@ on:
     types:
       - published
   pull_request:
-  workflow_dispatch:
-  repository_dispatch:
-    types: [run_actions]
 
 jobs:
   ldap:

+ 0 - 3
.github/workflows/run_fvt_tests.yaml

@@ -8,9 +8,6 @@ on:
     types:
       - published
   pull_request:
-  workflow_dispatch:
-  repository_dispatch:
-    types: [run_actions]
 
 jobs:
     docker_test:

+ 0 - 3
.github/workflows/run_test_cases.yaml

@@ -8,9 +8,6 @@ on:
     types:
       - published
   pull_request:
-  workflow_dispatch:
-  repository_dispatch:
-    types: [run_actions]
 
 jobs:
     run_test_case: