Skip to content

Convert to composite Action#45

Merged
mcdonnnj merged 1 commit intodevelopfrom
improvement/convert_to_composite_action
Feb 8, 2022
Merged

Convert to composite Action#45
mcdonnnj merged 1 commit intodevelopfrom
improvement/convert_to_composite_action

Conversation

@mcdonnnj
Copy link
Member

@mcdonnnj mcdonnnj commented Feb 8, 2022

🗣 Description

This pull request converts this GitHub Action from a Docker container Action to a composite Action.

💭 Motivation and context

With the introduction of composite Actions we can do something as simple as this Action without needing to build and spin up a Docker image. Since cisagov/skeleton-generic#92 was merged we are already configured to use this Action's outputs so the change should be seamless.

🧪 Testing

Automated tests pass. I used this branch in this Actions run and saw the correct versions.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All new and existing tests pass.

This converts this Action to a `composite` Action from a `docker` Action.
Since we only use this Action to provide version through outputs we do not
need to go through the trouble of building and running a Docker image now
that there are `composite` Actions:
https://docs.github.com/en/actions/creating-actions/creating-a-composite-action

This should simplify this Action greatly and reduce its run time.
@mcdonnnj mcdonnnj added the improvement This issue or pull request will add or improve functionality, maintainability, or ease of use label Feb 8, 2022
@mcdonnnj mcdonnnj self-assigned this Feb 8, 2022
Copy link
Member

@jsf9k jsf9k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love it!

Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful! 🌷

@mcdonnnj mcdonnnj merged commit 9da3e05 into develop Feb 8, 2022
@mcdonnnj mcdonnnj deleted the improvement/convert_to_composite_action branch February 8, 2022 17:21
@mcdonnnj mcdonnnj linked an issue Nov 15, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement This issue or pull request will add or improve functionality, maintainability, or ease of use

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No Outputs Set by the Action

3 participants