mirror of
https://github.com/zen-browser/theme-store.git
synced 2025-07-07 17:05:31 +02:00
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:
parent
7dbc034a97
commit
3669071b8f
1 changed files with 1 additions and 1 deletions
2
.github/workflows/create-theme.yml
vendored
2
.github/workflows/create-theme.yml
vendored
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue