diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-05-21 20:49:40 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-05-21 20:49:40 +0900 |
| commit | b0344e07c40b62891bd5729fc4ff70a76f0c39a6 (patch) | |
| tree | 73437751b05191c764425b78c7078fead73c58cf | |
| parent | :art: (diff) | |
| parent | ci: fix head user (diff) | |
| download | misskey-b0344e07c40b62891bd5729fc4ff70a76f0c39a6.tar.gz misskey-b0344e07c40b62891bd5729fc4ff70a76f0c39a6.tar.bz2 misskey-b0344e07c40b62891bd5729fc4ff70a76f0c39a6.zip | |
Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop
| -rw-r--r-- | .github/workflows/storybook.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index a9a5be7588..6cb1b34997 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -86,7 +86,11 @@ jobs: if [ "$CHROMATIC_PARAMETER" = " --skip" ]; then echo "skip=true" >> $GITHUB_OUTPUT fi - pnpm --filter frontend chromatic --exit-once-uploaded -d storybook-static $(echo "$CHROMATIC_PARAMETER") + BRANCH="${{ github.event.pull_request.head.user.login }}:${{ github.event.pull_request.head.ref }}" + if [ "$BRANCH" = "misskey-dev:${{ github.event.pull_request.head.ref }}" ]; then + BRANCH="${{ github.event.pull_request.head.ref }}" + fi + pnpm --filter frontend chromatic --exit-once-uploaded -d storybook-static --branch-name $BRANCH $(echo "$CHROMATIC_PARAMETER") env: CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - name: Notify that Chromatic detects changes |