diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2023-04-08 07:16:10 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-08 07:16:10 +0000 |
| commit | a432f53d6cbfdac1a0c157a8f0424d8902818c60 (patch) | |
| tree | 625dd1c3f6672b8498242c61a22924f1bdd7044f /.github/workflows | |
| parent | 13.11.0-beta.8 (diff) | |
| download | misskey-a432f53d6cbfdac1a0c157a8f0424d8902818c60.tar.gz misskey-a432f53d6cbfdac1a0c157a8f0424d8902818c60.tar.bz2 misskey-a432f53d6cbfdac1a0c157a8f0424d8902818c60.zip | |
ci: avoid 0000000
Diffstat (limited to '.github/workflows')
| -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 3a62bf2378..6792674d9f 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -44,7 +44,11 @@ jobs: if: github.ref != 'refs/heads/master' id: chromatic run: | - CHROMATIC_PARAMETER="$(node packages/frontend/.storybook/changes.js $(git diff-tree --no-commit-id --name-only -r ${{ github.event.before }} HEAD | xargs))" + DIFF="${{ github.event.before }} HEAD" + if [ "$DIFF" = "0000000000000000000000000000000000000000 HEAD" ]; then + DIFF="HEAD" + fi + CHROMATIC_PARAMETER="$(node packages/frontend/.storybook/changes.js $(git diff-tree --no-commit-id --name-only -r $(echo "$DIFF") | xargs))" if [ "$CHROMATIC_PARAMETER" = " --skip" ]; then echo "skip=true" >> $GITHUB_OUTPUT fi |