From ca97a59c8f9936a9e32b7a7b0168e5b181fdbcdf Mon Sep 17 00:00:00 2001 From: Rico Date: Thu, 10 Feb 2022 12:22:38 +0800 Subject: [PATCH] ci: Update workflow run condition refs oursky/likecoin-chain#1 --- .github/workflows/build.yml | 10 +++++++--- .github/workflows/lint.yml | 7 ++++++- .github/workflows/test.yml | 7 ++++++- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9890879c3d..542e5bad4a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,10 @@ name: Build Binaries -on: [pull_request, push] - +on: + pull_request: + push: + branches: + - master + - develop jobs: cleanup: runs-on: ubuntu-latest @@ -9,7 +13,7 @@ jobs: env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/develop'" - + build: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 713cc96ba2..6654f21a48 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,5 +1,10 @@ name: Lint Check -on: [pull_request, push] +on: + pull_request: + push: + branches: + - master + - develop jobs: lint: name: Check lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 96d8d647da..391eb82b9b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,10 @@ name: Test -on: [pull_request, push] +on: + pull_request: + push: + branches: + - master + - develop jobs: test: name: Run test