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 include author information and image in theme submission
This commit is contained in:
parent
20922c7873
commit
367a302e9f
3 changed files with 30 additions and 4 deletions
10
.github/ISSUE_TEMPLATE/create-theme.yml
vendored
10
.github/ISSUE_TEMPLATE/create-theme.yml
vendored
|
@ -24,9 +24,13 @@ body:
|
|||
attributes:
|
||||
label: Homepage
|
||||
description: The URL of the theme's homepage or repository.
|
||||
placeholder: Theme Homepage
|
||||
validations:
|
||||
required: true
|
||||
placeholder: https://github.com/...
|
||||
- type: input
|
||||
id: image
|
||||
attributes:
|
||||
label: Image
|
||||
description: "A URL to an image representing the theme. It can be a temporary image, it will be cloned to the theme library. Note: The image must be a PNG file. E.g. an imgur link."
|
||||
placeholder: https://...
|
||||
- type: textarea
|
||||
id: styles
|
||||
attributes:
|
||||
|
|
4
.github/workflows/create-theme.yml
vendored
4
.github/workflows/create-theme.yml
vendored
|
@ -31,6 +31,7 @@ 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_IMAGE=${{ fromJson(steps.issue-parser.outputs.jsonString)['image'] }}" >> $GITHUB_ENV
|
||||
echo "THEME_AUTHOR=${{ github.event.issue.user.login }}" >> $GITHUB_ENV
|
||||
|
||||
- name: Write styles to file
|
||||
|
@ -56,6 +57,7 @@ jobs:
|
|||
--name "${{ env.THEME_NAME }}" \
|
||||
--description "${{ env.THEME_DESCRIPTION }}" \
|
||||
--author "${{ env.THEME_AUTHOR }}" \
|
||||
--image "${{ env.THEME_IMAGE }}" \
|
||||
--homepage "${{ env.THEME_HOMEPAGE }}" 2> error.log
|
||||
|
||||
- name: Export creation output
|
||||
|
@ -103,7 +105,7 @@ jobs:
|
|||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
comment: |
|
||||
# Thank you for your contribution!
|
||||
# Thank you for your contribution! :tada:
|
||||
|
||||
Your theme has been successfully submitted. The maintainers will review it and get back to you soon.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue