Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dvviktordelev committed Apr 24, 2024
1 parent bae9d3e commit 7beff91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-node-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
ref: ${{ inputs.branch }}
token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
# 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' }}
fetch-depth: ${{ (github.event_name == 'push' && (startsWith(github.event.head_commit.modified, 'src/design/stories/') || endsWith(github.event.head_commit.modified, '.stories.mdx')) || inputs.chromatic_enable) && '0' || '1' }}
#fetch-depth: 0
- name: Checkout github-workflows
uses: actions/checkout@v4
Expand All @@ -129,7 +129,7 @@ jobs:
github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
run_webpack: ${{ inputs.node_run_webpack }}
- name: Run Chromatic
if: ${{ github.event_name == 'push' && (startsWith(github.event.head_commit.modified, 'src/design/stories/') || endsWith(github.event.head_commit.modified, '.stories.')) || inputs.chromatic_enable }}
if: ${{ github.event_name == 'push' && (startsWith(github.event.head_commit.modified, 'src/design/stories/') || endsWith(github.event.head_commit.modified, '.stories.mdx')) || inputs.chromatic_enable }}
uses: chromaui/[email protected]
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
Expand Down

0 comments on commit 7beff91

Please sign in to comment.