mirror of
https://github.com/zen-browser/theme-store.git
synced 2025-07-07 17:05:31 +02:00
This commit adds an issue template and a workflow for creating themes in the repository. The issue template allows users to submit a theme to be added to the theme library, while the workflow automatically parses the submitted issue and performs necessary checks.
31 lines
913 B
YAML
31 lines
913 B
YAML
on:
|
|
issues:
|
|
types: [opened]
|
|
|
|
jobs:
|
|
titlePrefixCheck:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Parse issue
|
|
id: parse
|
|
uses: onmax/issue-form-parser@v1.5
|
|
with:
|
|
issue_number: ${{ github.event.issue.number }}
|
|
|
|
# Examples on how to use the output
|
|
- name: Show parsed payload data
|
|
run: |
|
|
# Using the character `'` to prevent all characters enclosed within
|
|
# them from being treated as special characters (e.g. $ or `)
|
|
echo '${{ steps.parse.outputs.payload }}'
|
|
|
|
# Print the value of the "Name" field
|
|
echo '${{ fromJson(steps.parse.outputs.payload)["Name"] }}'
|
|
|
|
- if: startsWith(github.event.issue.title, '[create-theme]: ') != 'true'
|
|
name: Close Issue
|
|
uses: peter-evans/close-issue@v3
|
|
with:
|
|
comment: |
|
|
# Thank you for your contribution!
|