mirror of
https://github.com/zen-browser/theme-store.git
synced 2025-07-07 08:55:31 +02:00
chore: Add preferences support to create-theme workflow
This commit is contained in:
parent
08316fba81
commit
34c19e2524
3 changed files with 65 additions and 3 deletions
13
.github/ISSUE_TEMPLATE/create-theme.yml
vendored
13
.github/ISSUE_TEMPLATE/create-theme.yml
vendored
|
@ -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"
|
||||
}
|
6
.github/workflows/create-theme.yml
vendored
6
.github/workflows/create-theme.yml
vendored
|
@ -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]"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue