From a1770acbc09e94ecf340d68cbf6ccb9a789186b5 Mon Sep 17 00:00:00 2001 From: Mauro Balades Date: Thu, 15 Aug 2024 21:09:14 +0200 Subject: [PATCH] chore: Update create-theme workflow to use environment variables for theme creation --- .github/workflows/create-theme.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/create-theme.yml b/.github/workflows/create-theme.yml index 1790ab7b..b17782c2 100644 --- a/.github/workflows/create-theme.yml +++ b/.github/workflows/create-theme.yml @@ -32,12 +32,12 @@ jobs: - name: Export parsed payload into variables id: export run: | - 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 + 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: | @@ -47,12 +47,12 @@ jobs: - name: Create theme content run: | python3 scripts/submit-theme.py \ - --name "${THEME_NAME}" \ - --description "${THEME_DESCRIPTION}" \ - --homepage "${THEME_HOMEPAGE}" \ - --styles "${THEME_STYLES}" \ - --readme "${THEME_README}" \ - --author "${THEME_AUTHOR}" 2> error.log + --name "${{ env.THEME_NAME }}" \ + --description "${{ env.THEME_DESCRIPTION }}" \ + --homepage "${{ env.THEME_HOMEPAGE }}" \ + --styles "${{ env.THEME_STYLES }}" \ + --readme "${{ env.THEME_README }}" 2> error.log + continue-on-error: true - name: Export creation output if: failure() @@ -106,7 +106,7 @@ jobs: Your theme has been successfully submitted. The maintainers will review it and get back to you soon. Here are some details about your submission: - * Your theme has been requested into [this PR](https://github.com/zen-browser/theme-store/pull/${{ steps.createPR.outputs.pull-request-url }})! + * Your theme has been requested into [this PR](https://github.com/zen-browser/theme-store/pull/${{ env.PULL_REQUEST_NUMBER }}). * It has been created into the [create-theme-${{ github.event.issue.number }} branch](https://github.com/zen-browser/theme-store/tree/create-theme-${{ github.event.issue.number }}). > If you have any questions or need help, feel free to ask in the comments below or in the PR.