Skip to content

Commit 29e207c

Browse files
committed
feat(autofix): allow fetch all
1 parent bff6952 commit 29e207c

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
required: false
1111
type: string
1212
default: pnpm run lint --fix
13+
fetch-all:
14+
description: Whether to fetch all history for all branches and tags.
15+
required: false
16+
type: boolean
17+
default: false
1318

1419
jobs:
1520
autofix:
@@ -20,6 +25,8 @@ jobs:
2025
steps:
2126
- name: Setup JS
2227
uses: zotero-plugin-dev/workflows/setup-js@main
28+
with:
29+
fetch-all: ${{ inputs.fetch-all }}
2330

2431
- name: Fix
2532
run: ${{ inputs.command }}

setup-js/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ runs:
3030
with:
3131
persist-credentials: ${{ inputs.persist-credentials }}
3232
fetch-depth: "${{ inputs.fetch-all == 'true' && '0' || '1' }}"
33+
submodules: "${{ inputs.fetch-all == 'true' && 'recursive' || false }}"
3334

3435
- name: Install pnpm
3536
if: ${{ inputs.package-manager == 'pnpm' }}

0 commit comments

Comments
 (0)