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
on:
push:
branches:
- master
paths:
- src/**
- .github/workflows/build.yml

View File

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

View File

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