feat: Update theme creation workflow to handle color themes

This commit modifies the `create-theme.yml` workflow file to handle color themes. It adds a new environment variable `THEME_IS_COLOR_THEME` that indicates whether the theme is a color theme. The value of this variable is determined based on the presence of the "JSON Color Theme" string in the `is-color-theme` field of the theme creation form. This change allows for the generation of a `chrome.css` file for color themes using the provided color values in a `colors.json` file.

Fixes #69
This commit is contained in:
Mauro Balades 2024-08-21 16:41:14 +02:00
parent 7dbc034a97
commit 3669071b8f

View file

@ -38,7 +38,7 @@ jobs:
echo "THEME_HOMEPAGE=${{ fromJson(steps.issue-parser.outputs.jsonString)['homepage'] }}" >> $GITHUB_ENV
echo "THEME_IMAGE=${{ fromJson(steps.issue-parser.outputs.jsonString)['image'] }}" >> $GITHUB_ENV
echo "THEME_AUTHOR=${{ github.event.issue.user.login }}" >> $GITHUB_ENV
echo "THEME_IS_COLOR_THEME=${{ fromJson(steps.issue-parser.outputs.jsonString)['is-color-theme'] }}" >> $GITHUB_ENV
echo "THEME_IS_COLOR_THEME=${{ contains(fromJson(steps.issue-parser.outputs.jsonString)['is-color-theme'], 'JSON Color Theme') }}" >> $GITHUB_ENV
- name: Write styles to file
uses: "DamianReeves/write-file-action@master"