-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix issues linking to test reports
- Loading branch information
1 parent
5c7f1e1
commit 578f00c
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,19 +78,19 @@ jobs: | |
- name: Extract and sanitize branch name | ||
id: extract_branch | ||
run: | | ||
sanitized_branch=$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | sed 's/[^a-zA-Z0-9_-]/-/g') | ||
sanitized_branch=$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} | ||
echo "BRANCH_NAME=${sanitized_branch}" >> $GITHUB_ENV | ||
- name: Storybook parsed branch name | ||
id: storybook_branch | ||
run: echo "STORYBOOK_BRANCH=${{ env.BRANCH_NAME }}" >> $GITHUB_ENV | ||
run: echo "STORYBOOK_BRANCH=${{ env.BRANCH_NAME }}" | sed 's/[^a-zA-Z0-9_-]/-/g') >> $GITHUB_ENV | ||
|
||
- uses: kyranjamie/[email protected] | ||
env: | ||
EXTENSION_BUILD_LINK: '[Extension build](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})' | ||
TEST_REPORT_LINK: '[Test report](https://leather-io.github.io/playwright-reports/${{ env.BRANCH_NAME }})' | ||
STORYBOOK_LINK: '[Storybook](https://${{ env.BRANCH_NAME }}--65982789c7e2278518f189e7.chromatic.com)' | ||
CHROMATIC_LINK: '[Chromatic](https://www.chromatic.com/library?appId=65982789c7e2278518f189e7&branch=${{ env.BRANCH_NAME }})' | ||
STORYBOOK_LINK: '[Storybook](https://${{ env.STORYBOOK_BRANCH }}--65982789c7e2278518f189e7.chromatic.com)' | ||
CHROMATIC_LINK: '[Chromatic](https://www.chromatic.com/library?appId=65982789c7e2278518f189e7&branch=${{ env.STORYBOOK_BRANCH }})' | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.LEATHER_BOT }} | ||
header: | | ||
|