DSACMS / repo-scaffolder

Templates and commandline tools for creating repositories for US Federal open source projects
Creative Commons Zero v1.0 Universal
21 stars 8 forks source link

Add Reusable Workflow to Compute Raw JSON file for use with repolinter GH Action. #91

Closed IsaacMilarky closed 3 months ago

IsaacMilarky commented 3 months ago

Add Reusable Workflow to Compute Raw JSON file for use with repolinter GH Action.

Problem

The repolinter GitHub action that we are using, newrelic/repolinter-action@v1, doesn't support the extends keyword that is commonly used in repolinter.json files.

Solution

Create a reusable GitHub workflow that iterates recursively through all JSON files that are referenced by the extends keyword and updates the values to reflect the proper repolinter tier.

Result

Projects can now use this GitHub action to alter their repolinter.json file that they are using to work with newrelic's repolinter-action.

Test Plan

Push to dev and test outside this repository.

IsaacMilarky commented 3 months ago

Q: Are these EoF characters necessary? Prolly not an issue, just asking.

I don't think they are? I think this just means that there is no trailing space in those files but I am not sure.