mirror of
https://github.com/zen-browser/theme-store.git
synced 2025-07-07 08:55:31 +02:00
chore: Update create-theme workflow to output styles and readme
This commit is contained in:
parent
22681c76e1
commit
f7711c3b57
2 changed files with 30 additions and 13 deletions
15
.github/workflows/create-theme.yml
vendored
15
.github/workflows/create-theme.yml
vendored
|
@ -31,8 +31,15 @@ jobs:
|
|||
echo "THEME_NAME=${{ fromJson(steps.issue-parser.outputs.jsonString)['name'] }}" >> $GITHUB_ENV
|
||||
echo "THEME_DESCRIPTION=${{ fromJson(steps.issue-parser.outputs.jsonString)['description'] }}" >> $GITHUB_ENV
|
||||
echo "THEME_HOMEPAGE=${{ fromJson(steps.issue-parser.outputs.jsonString)['homepage'] }}" >> $GITHUB_ENV
|
||||
echo 'THEME_STYLES=${{ fromJson(steps.issue-parser.outputs.jsonString)['styles'] }}' >> $GITHUB_ENV
|
||||
echo 'THEME_README=${{ fromJson(steps.issue-parser.outputs.jsonString)['readme'] }}' >> $GITHUB_ENV
|
||||
|
||||
echo "Ouputing styles and readme"
|
||||
cat <<THEME_CREATE_EOT >> theme-styles.css
|
||||
${{ fromJson(steps.issue-parser.outputs.jsonString)['styles'] }}
|
||||
THEME_CREATE_EOT
|
||||
|
||||
cat <<THEME_CREATE_EOT >> theme-readme.md
|
||||
${{ fromJson(steps.issue-parser.outputs.jsonString)['readme'] }}
|
||||
THEME_CREATE_EOT
|
||||
|
||||
- name: Setup Git
|
||||
run: |
|
||||
|
@ -44,9 +51,7 @@ jobs:
|
|||
python3 scripts/submit-theme.py \
|
||||
--name "${{ env.THEME_NAME }}" \
|
||||
--description "${{ env.THEME_DESCRIPTION }}" \
|
||||
--homepage "${{ env.THEME_HOMEPAGE }}" \
|
||||
--styles "${{ env.THEME_STYLES }}" \
|
||||
--readme "${{ env.THEME_README }}" 2> error.log
|
||||
--homepage "${{ env.THEME_HOMEPAGE }}" 2> error.log
|
||||
continue-on-error: true
|
||||
|
||||
- name: Export creation output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue