ci(gh-actions): limit ci actions to master branch

This causes issues when a release is published, because the build scripts create a new branch
because of the new tag that gets automatically pushed by GitHub
This commit is contained in:
Federico Grandi
2020-11-11 18:59:15 +01:00
parent 57c075ed5f
commit 110b7e289f
3 changed files with 7 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
name: Build name: Build
on: on:
push: push:
branches:
- master
paths: paths:
- src/** - src/**
- .github/workflows/build.yml - .github/workflows/build.yml

View File

@@ -1,6 +1,8 @@
name: Docs name: Docs
on: on:
push: push:
branches:
- master
paths: paths:
- .all-contributorsrc - .all-contributorsrc
- .github/workflows/docs.yml - .github/workflows/docs.yml
@@ -23,7 +25,7 @@ jobs:
- uses: EndBug/add-and-commit@v4.0.0 - uses: EndBug/add-and-commit@v4.0.0
with: with:
message: "[auto] docs: update contributors badge" message: '[auto] docs: update contributors badge'
add: README.md add: README.md
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,6 +1,8 @@
name: Sync labels name: Sync labels
on: on:
push: push:
branches:
- master
paths: paths:
- '.github/labels.yml' - '.github/labels.yml'
workflow_dispatch: workflow_dispatch: