Skip to content

Commit

Permalink
Merge pull request #864 from voxpupuli/also-run-ci-on-main-branch
Browse files Browse the repository at this point in the history
Also run CI an the main/master branch
  • Loading branch information
bastelfreak authored Jan 22, 2024
2 parents be6e1d0 + 28a40a6 commit 3ce09a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions config_defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion moduleroot/.github/workflows/ci.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 3ce09a3

Please sign in to comment.