developer-skills-matrix icon indicating copy to clipboard operation
developer-skills-matrix copied to clipboard

Automation: Convert CSV file to JSON

Open naomi-lgbt opened this issue 3 years ago • 4 comments

We want an automated action that runs when the rubric.csv file is changed - it should parse the file into the JSON format and overwrite rubric.json.

We can use the TypeScript infrastructure to write the code and have the action file run it.

naomi-lgbt avatar Jun 05 '22 16:06 naomi-lgbt

CSV is:

category, sub-category, beginner, advanced beginner, intermediate, advanced, expert

JSON should be:

category: {
  subcategory: {
    beginner: ''
    advanced beginner: ''
    intermediate: ''
    advanced: ''
    expert: ''
  }
}

naomi-lgbt avatar Jun 09 '22 15:06 naomi-lgbt

Can I work on this, where does the json need to be put?

KendallDoesCoding avatar Jun 10 '22 07:06 KendallDoesCoding

@KendallDoesCoding there is a file called rubric.json in the rubric folder, where rubrc.csv is.

@nhcarrigan While working, I was wondering, why should we not use a CLI csv2json convertor with GitHub Actions 🤔

gptkrsh avatar Jun 12 '22 06:06 gptkrsh

If the package will give us the output we want, go for it!

naomi-lgbt avatar Jun 12 '22 13:06 naomi-lgbt