Skip to content

Commit

Permalink
ci: Update workflow run condition
Browse files Browse the repository at this point in the history
  • Loading branch information
hochiw committed Feb 10, 2022
1 parent e7f647b commit ca97a59
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Build Binaries
on: [pull_request, push]

on:
pull_request:
push:
branches:
- master
- develop
jobs:
cleanup:
runs-on: ubuntu-latest
Expand All @@ -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:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Lint Check
on: [pull_request, push]
on:
pull_request:
push:
branches:
- master
- develop
jobs:
lint:
name: Check lint
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Test
on: [pull_request, push]
on:
pull_request:
push:
branches:
- master
- develop
jobs:
test:
name: Run test
Expand Down

0 comments on commit ca97a59

Please sign in to comment.