theme-store/.github/workflows/create-theme.yml
Workflow config file is invalid. Please check your config file: yaml: line 26: mapping values are not allowed in this context
Mauro Balades 5a1cf7cb93 feat: Add issue template and workflow for creating themes
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.
2024-08-15 19:46:12 +02:00

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!