fix(ci): fix Chromatic CI not being skipped for dependency update branches (#15766)

This commit is contained in:
zyoshoka 2025-04-07 09:55:18 +09:00 committed by GitHub
parent f9a3db2ac3
commit 1ede45c8fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 5 deletions

View File

@ -11,14 +11,15 @@ on:
# Storybook CI is checked on the "push" event of "develop" branch so it would cause a duplicate build.
# This is a waste of chromatic build quota, so we don't run storybook CI on pull requests targets master.
- master
# Neither Dependabot nor Renovate will change the actual behavior for components.
- 'dependabot/**'
- 'renovate/**'
jobs:
build:
# chromatic is not likely to be available for fork repositories, so we disable for fork repositories.
if: github.repository == 'misskey-dev/misskey'
# Chromatic is not likely to be available for fork repositories, so we disable for fork repositories.
# Neither Dependabot nor Renovate will change the actual behavior for components.
if: >-
github.repository == 'misskey-dev/misskey' &&
startsWith(github.ref, 'refs/heads/dependabot/') != true &&
startsWith(github.ref, 'refs/heads/renovate/') != true
runs-on: ubuntu-latest
env: