Change build workflow trigger to main branch

The default branch is now `main`, so trigger builds from that branch.
Also: use a specific version of the action from fluxcd/pkg, to avoid
just getting the latest commit, whatever that is.
This commit is contained in:
Michael Bridgen 2020-08-05 17:05:16 +01:00
parent 83a86af323
commit ea9f7c0c58
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ on:
pull_request: pull_request:
push: push:
branches: branches:
- master - main
jobs: jobs:
test: test:
@ -25,7 +25,7 @@ jobs:
go-version: 1.14.x go-version: 1.14.x
- name: Set up kubebuilder - name: Set up kubebuilder
# TODO replace with ../pkg/.. when that's merged # TODO replace with ../pkg/.. when that's merged
uses: fluxcd/pkg/actions/kubebuilder@master uses: fluxcd/pkg/actions/kubebuilder@v0.0.4
- name: Run tests - name: Run tests
run: make test run: make test
env: env: