puppetlabs / cat-github-actions

1 stars 4 forks source link

(feat) - add matrix as input #43

Closed jordanbreen28 closed 1 year ago

jordanbreen28 commented 1 year ago

This PR allows a custom matrix to be passed to module_acceptance.yml.

This allows the calling workflow to pass a matrix that differs from the one that would be generated by bundle exec matrix_from_metadata_v2, which may be useful when requiring a different provisioner, image type etc.

jordanbreen28 commented 1 year ago

Examples of this working:

Without a matrix input (i.e. using bundle exec matrix_from_metadata_v2) https://github.com/puppetlabs/puppetlabs-motd/actions/runs/5070890328/jobs/9106557987?pr=486

With a custom matrix input https://github.com/puppetlabs/puppetlabs-lvm/actions/runs/5070837417 (ignore failing tests, we are testing that the matrix is produced and vms provisioned)