chore: Add preferences support to create-theme workflow

This commit is contained in:
Mauro Balades 2024-08-16 00:52:10 +02:00
parent 08316fba81
commit 34c19e2524
3 changed files with 65 additions and 3 deletions

View file

@ -51,4 +51,15 @@ body:
label: Readme
description: The README file for the theme.
validations:
required: true
required: true
- type: textarea
id: preferences
attributes:
render: json
label: Preferences
description: The preferences for the theme in JSON format. Leave empty if there are no preferences.
placeholder: |
{
"uc.my-preference.enable-this": "Enable this feature for the theme",
"uc.my-preference.show-that": "Show that feature for the theme"
}

View file

@ -46,6 +46,12 @@ jobs:
contents: ${{ fromJson(steps.issue-parser.outputs.jsonString)['readme'] }}
path: theme-readme.md
- name: Write preferences to file
uses: "DamianReeves/write-file-action@master"
with:
contents: ${{ fromJson(steps.issue-parser.outputs.jsonString)['preferences'] }}
path: theme-preferences.json
- name: Setup Git
run: |
git config --global user.name "github-actions[bot]"