Skip to content

Commit

Permalink
debug fetch-depth
Browse files Browse the repository at this point in the history
  • Loading branch information
dvviktordelev committed Apr 24, 2024
1 parent 6ef5469 commit d8f8eec
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/build-node-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ 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.')) || inputs.chromatic_enable) && '0' || '1' }}
fetch-depth: 0
- name: Checkout github-workflows
uses: actions/checkout@v4
with:
Expand All @@ -127,13 +128,7 @@ jobs:
npm_registry: ${{ env.NPM_REGISTRY }}
github_ro_token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
run_webpack: ${{ inputs.node_run_webpack }}
#- name: Checkout source repository with full history for 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 }}
# uses: actions/checkout@v4
# with:
# ref: ${{ github.sha }}
# token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
# fetch-depth: 0

- 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 }}
uses: chromaui/[email protected]
Expand Down

0 comments on commit d8f8eec

Please sign in to comment.