Skip to content

Commit

Permalink
add conditional fetch-depth for chromatic
Browse files Browse the repository at this point in the history
  • Loading branch information
dvviktordelev committed Apr 24, 2024
1 parent 96fba43 commit 6ef5469
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-node-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ jobs:
with:
ref: ${{ inputs.branch }}
token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
fetch-depth: 0
# chromatic needs fetch-depth: 0
fetch-depth: ${{ (github.event_name == 'push' && (startsWith(github.event.head_commit.modified, 'src/design/stories/') || endsWith(github.event.head_commit.modified, '.stories.')) || inputs.chromatic_enable) && '0' || '1' }}
- name: Checkout github-workflows
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 6ef5469

Please sign in to comment.