Skip to content

Commit bb09e43

Browse files
committed
Allow skipping Percy snapshots via PR description
Authors working on changes that touch the scrolled package but are known not to affect visual output (e.g. pure refactors or non-visual logic) can now opt out of the Percy snapshot run by including [skip percy] in the PR description. This conserves Percy usage quota without needing to further narrow the path filter.
1 parent 66db4b0 commit bb09e43

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/storybook.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ env:
1818

1919
jobs:
2020
snapshot:
21+
# Skip when PR description contains [skip percy] to reduce Percy usage
22+
if: github.event_name != 'pull_request' || !contains(github.event.pull_request.body, '[skip percy]')
2123
runs-on: ubuntu-latest
2224

2325
services:

0 commit comments

Comments
 (0)