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 capture error logs
This commit is contained in:
parent
a0188a824b
commit
002a1f1a2a
2 changed files with 17 additions and 7 deletions
14
.github/workflows/create-theme.yml
vendored
14
.github/workflows/create-theme.yml
vendored
|
@ -32,12 +32,12 @@ jobs:
|
|||
- name: Export parsed payload into variables
|
||||
id: export
|
||||
run: |
|
||||
export THEME_NAME='${{ fromJson(steps.parse.outputs.payload)['Name'] }}'
|
||||
export THEME_DESCRIPTION='${{ fromJson(steps.parse.outputs.payload)['Description'] }}'
|
||||
export THEME_HOMEPAGE='${{ fromJson(steps.parse.outputs.payload)['Homepage'] }}'
|
||||
export THEME_STYLES='${{ fromJson(steps.parse.outputs.payload)['Theme Styles'] }}'
|
||||
export THEME_README='${{ fromJson(steps.parse.outputs.payload)['Readme'] }}'
|
||||
export THEME_AUTHOR='${{ github.actor }}'
|
||||
echo "THEME_NAME='${{ fromJson(steps.parse.outputs.payload)['Name'] }}'" >> $GITHUB_ENV
|
||||
echo "THEME_DESCRIPTION='${{ fromJson(steps.parse.outputs.payload)['Description'] }}'" >> $GITHUB_ENV
|
||||
echo "THEME_HOMEPAGE='${{ fromJson(steps.parse.outputs.payload)['Homepage'] }}'" >> $GITHUB_ENV
|
||||
echo "THEME_STYLES='${{ fromJson(steps.parse.outputs.payload)['Theme Styles'] }}'" >> $GITHUB_ENV
|
||||
echo "THEME_README='${{ fromJson(steps.parse.outputs.payload)['Readme'] }}'" >> $GITHUB_ENV
|
||||
echo "THEME_AUTHOR='${{ github.actor }}'" >> $GITHUB_ENV
|
||||
|
||||
- name: Setup Git
|
||||
run: |
|
||||
|
@ -57,7 +57,7 @@ jobs:
|
|||
--styles "${THEME_STYLES}" \
|
||||
--readme "${THEME_README}" \
|
||||
--author "${THEME_AUTHOR}" 2> error.log
|
||||
export CREATION_OUTPUT=$(cat error.log)
|
||||
echo "CREATION_OUTPUT=$(cat error.log)" >> $GITHUB_ENV
|
||||
|
||||
- name: Show error message
|
||||
if: failure()
|
||||
|
|
|
@ -32,6 +32,16 @@ def main():
|
|||
|
||||
theme_id = create_theme_id()
|
||||
|
||||
print("""
|
||||
Welcome to the Zen Browser Theme Store!
|
||||
|
||||
Please review the information below before submitting your theme. Also... Why are you here?
|
||||
|
||||
This action is only for theme reviewers. If you are a theme developer, please use the theme store.
|
||||
|
||||
Just joking, you can do whatever you want. You're the boss.
|
||||
""")
|
||||
|
||||
theme = {
|
||||
'id': theme_id,
|
||||
'name': name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue