summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-05-12 08:01:31 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-05-12 08:01:31 +0900
commitbb3c85d3a19bda46119f0ef5d4c8ccf257859eac (patch)
tree56ae70301ef3179669dbc0a26c023c16a07681ca /.github
parentUpdate basic.cy.js (diff)
parentci: fix missing branch (diff)
downloadmisskey-bb3c85d3a19bda46119f0ef5d4c8ccf257859eac.tar.gz
misskey-bb3c85d3a19bda46119f0ef5d4c8ccf257859eac.tar.bz2
misskey-bb3c85d3a19bda46119f0ef5d4c8ccf257859eac.zip
Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/storybook.yml18
1 files changed, 17 insertions, 1 deletions
diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml
index 05efbb12e6..b04f4260c3 100644
--- a/.github/workflows/storybook.yml
+++ b/.github/workflows/storybook.yml
@@ -57,7 +57,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")
+ if pnpm --filter frontend chromatic -d storybook-static $(echo "$CHROMATIC_PARAMETER"); then
+ echo "success=true" >> $GITHUB_OUTPUT
+ else
+ echo "success=false" >> $GITHUB_OUTPUT
+ fi
env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
- name: Publish to Chromatic
@@ -75,6 +79,18 @@ jobs:
pnpm --filter frontend chromatic --exit-once-uploaded -d storybook-static $(echo "$CHROMATIC_PARAMETER")
env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
+ - name: Notify that Chromatic detects changes
+ uses: actions/github-script@v6.4.0
+ if: github.event_name != 'pull_request_target' && steps.chromatic_push.outputs.success == 'false'
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ script: |
+ github.rest.repos.createCommitComment({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ commit_sha: context.sha,
+ body: 'Chromatic detects changes. Please [review the changes on Chromatic](https://www.chromatic.com/builds?appId=6428f7d7b962f0b79f97d6e4).'
+ })
- name: Notify that Chromatic will skip testing
uses: actions/github-script@v6.4.0
if: github.event_name == 'pull_request_target' && steps.chromatic_pull_request.outputs.skip == 'true'