Skip to content

Commit

Permalink
remove second checkout, make first fetch:0
Browse files Browse the repository at this point in the history
  • Loading branch information
dvviktordelev committed Apr 24, 2024
1 parent d6e5bb7 commit 96fba43
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build-node-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ jobs:
with:
ref: ${{ inputs.branch }}
token: ${{ github.event.repository.private == true && secrets.DATAVISYN_BOT_REPO_TOKEN || github.token }}
fetch-depth: 0
- name: Checkout github-workflows
uses: actions/checkout@v4
with:
Expand All @@ -125,13 +126,13 @@ 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: 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 96fba43

Please sign in to comment.