chore(CI): update events that trigger workflows

This commit is contained in:
zhanghongtong 2021-03-03 19:59:26 +08:00 committed by Rory Z
parent f0d42bc6f5
commit ee776c5099
5 changed files with 5 additions and 21 deletions

View File

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

View File

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

View File

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

View File

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

View File

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