Skip to content

Commit b1d8d09

Browse files
Merge pull request #1012 from yutailang0119/actions/fetch-depth-1
[GitHub Actions] Fix checkout to add `fetch-depth: 1` option
2 parents af11f6b + 7513dd7 commit b1d8d09

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/[email protected]
13+
with:
14+
fetch-depth: 1
1315
- run: |
1416
npm install
1517
- run: |
@@ -18,6 +20,8 @@ jobs:
1820
runs-on: ubuntu-latest
1921
steps:
2022
- uses: actions/[email protected]
23+
with:
24+
fetch-depth: 1
2125
- uses: ./
2226
with:
2327
report-path: ${{ github.workspace }}/__tests__/resource/lint-results.xml

0 commit comments

Comments
 (0)