Fix variable setting

This commit is contained in:
AlexandreSi
2022-01-11 16:17:09 +01:00
parent d3a4e28152
commit f0e83909df

View File

@@ -56,16 +56,15 @@ jobs:
working-directory: newIDE/app
- name: Compute urls
id: storybook_urls
run: |
export STORYBOOK_S3_URL_COMMIT=http://gdevelop-storybook.s3-website-us-east-1.amazonaws.com/$(git rev-parse --abbrev-ref HEAD)/commit/$(git rev-parse HEAD)/index.html
export STORYBOOK_S3_URL_LATEST=http://gdevelop-storybook.s3-website-us-east-1.amazonaws.com/$(git rev-parse --abbrev-ref HEAD)/latest/index.html
echo "::set-output name=storybook_s3_url_commit::$STORYBOOK_S3_URL_COMMIT"
echo "::set-output name=storybook_s3_url_latest::$STORYBOOK_S3_URL_LATEST"
echo "::set-output name=storybook_s3_url_commit::http://gdevelop-storybook.s3-website-us-east-1.amazonaws.com/$(git rev-parse --abbrev-ref HEAD)/commit/$(git rev-parse HEAD)/index.html"
echo "::set-output name=storybook_s3_url_latest::http://gdevelop-storybook.s3-website-us-east-1.amazonaws.com/$(git rev-parse --abbrev-ref HEAD)/latest/index.html"
- name: Log urls to the Storybook
run: |
echo "Find the Storybook for this commit on ${{ steps.vars.outputs.storybook_s3_url_commit }}"
echo "Find the latest Storybook for this branch on ${{ steps.vars.outputs.storybook_s3_url_latest }}"
echo "Find the Storybook for this commit on ${{ steps.storybook_urls.outputs.storybook_s3_url_commit }}"
echo "Find the latest Storybook for this branch on ${{ steps.storybook_urls.outputs.storybook_s3_url_latest }}"
- name: Update GitHub Check with Storybook URLs
uses: LouisBrunner/checks-action@v1.1.1
@@ -74,11 +73,7 @@ jobs:
check_id: ${{ github.run_id }}
conclusion: success
output: |
{"summary": "## Links to storybook
- For the commit: ${{ steps.vars.outputs.storybook_s3_url_commit }}
- Under tag latest: ${{ steps.vars.outputs.storybook_s3_url_latest }}
"}
{"summary": "## Links to storybook\n\n- For the commit: ${{ steps.storybook_urls.outputs.storybook_s3_url_commit }}\n- Under tag latest: ${{ steps.storybook_urls.outputs.storybook_s3_url_latest }}"}
# Publish on Chromatic, only when manually launched (too costly to run on every commit).
- name: Publish Storybook to Chromatic