(MAINT) Refactor ci workflow
(MAINT) Refactor ci workflow

This commit contains some small improvements to the existing CI
workflow. It mainly consists of formatting and action version bumps
where required.

puppetlabs/ruby-pwsh,puppetlabs/ruby-pwsh