diff options
| author | Jorge <46056498+jorgectf@users.noreply.github.com> | 2024-04-03 06:02:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-03 13:02:36 +0900 |
| commit | c4fc582469a2596a4802496367699b9e04aed9f7 (patch) | |
| tree | 547379a734aeec2c784ddf830b13710b33f9cdc9 /.github/workflows | |
| parent | refactor(frontend): use `scrollX` or `scrollY` (#13645) (diff) | |
| download | sharkey-c4fc582469a2596a4802496367699b9e04aed9f7.tar.gz sharkey-c4fc582469a2596a4802496367699b9e04aed9f7.tar.bz2 sharkey-c4fc582469a2596a4802496367699b9e04aed9f7.zip | |
Merge pull request from GHSA-fpvp-74wx-35p3
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/storybook.yml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index 87481b12cf..ca82f4bcf3 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -87,12 +87,13 @@ jobs: if [ "$CHROMATIC_PARAMETER" = " --skip" ]; then echo "skip=true" >> $GITHUB_OUTPUT fi - 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 }}" + BRANCH="${{ github.event.pull_request.head.user.login }}:$HEAD_REF" + if [ "$BRANCH" = "misskey-dev:$HEAD_REF" ]; then + BRANCH="$HEAD_REF" fi pnpm --filter frontend chromatic --exit-once-uploaded -d storybook-static --branch-name $BRANCH $(echo "$CHROMATIC_PARAMETER") env: + HEAD_REF: ${{ github.event.pull_request.head.ref }} CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - name: Notify that Chromatic detects changes uses: actions/github-script@v7.0.1 |