diff --git a/config_defaults.yml b/config_defaults.yml index d22d2686..7dfe9140 100644 --- a/config_defaults.yml +++ b/config_defaults.yml @@ -5,6 +5,7 @@ pidfile_workaround: false additional_packages: '' acceptance_tests: true + main_branches: ['main', 'master'] # PDK creates this .github/workflows/puppet-lint.yml: delete: true diff --git a/moduleroot/.github/workflows/ci.yml.erb b/moduleroot/.github/workflows/ci.yml.erb index 5d66b666..3486151d 100644 --- a/moduleroot/.github/workflows/ci.yml.erb +++ b/moduleroot/.github/workflows/ci.yml.erb @@ -4,7 +4,13 @@ name: CI -on: pull_request +on: + pull_request: {} + push: + branches: +<%- @configs['main_branches'].each do |main_branch| -%> + - <%= main_branch %> +<%- end -%> concurrency: group: ${{ github.ref_name }}