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 write styles and readme to separate files
This commit is contained in:
parent
f7711c3b57
commit
9f5c6ebd05
2 changed files with 36 additions and 8 deletions
20
.github/workflows/create-theme.yml
vendored
20
.github/workflows/create-theme.yml
vendored
|
@ -31,15 +31,19 @@ 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 "Ouputing styles and readme"
|
||||
cat <<THEME_CREATE_EOT >> theme-styles.css
|
||||
${{ fromJson(steps.issue-parser.outputs.jsonString)['styles'] }}
|
||||
THEME_CREATE_EOT
|
||||
echo "THEME_AUTHOR=${{ github.event.issue.user.login }}" >> $GITHUB_ENV
|
||||
|
||||
cat <<THEME_CREATE_EOT >> theme-readme.md
|
||||
${{ fromJson(steps.issue-parser.outputs.jsonString)['readme'] }}
|
||||
THEME_CREATE_EOT
|
||||
- name: Write styles to file
|
||||
uses: "DamianReeves/write-file-action@master"
|
||||
with:
|
||||
contents: ${{ fromJson(steps.issue-parser.outputs.jsonString)['styles'] }}
|
||||
path: theme-styles.css
|
||||
|
||||
- name: Write readme to file
|
||||
uses: "DamianReeves/write-file-action@master"
|
||||
with:
|
||||
contents: ${{ fromJson(steps.issue-parser.outputs.jsonString)['readme'] }}
|
||||
path: theme-readme.md
|
||||
|
||||
- name: Setup Git
|
||||
run: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue