Skip to content

Commit 0cf0c35

Browse files
committed
add sparse checkout and upload artifact
1 parent 8923db3 commit 0cf0c35

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/docs-lint-and-validate.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ jobs:
99
steps:
1010
- name: Checkout repository
1111
uses: actions/checkout@v4
12+
with:
13+
sparse-checkout: |
14+
README.md
15+
sparse-checkout-cone-mode: false
1216

1317
- name: Setup Node.js
1418
uses: actions/setup-node@v4
@@ -30,6 +34,13 @@ jobs:
3034
output_file: temp/extracted-code.ts
3135
block_number: 2 # Quickstart
3236

37+
- name: Upload extracted code as artifact
38+
uses: actions/upload-artifact@v3
39+
with:
40+
name: extracted-code.ts
41+
path: temp/extracted-code.ts
42+
retention-days: 2
43+
3344
- name: Lint extracted examples
3445
run: npx eslint temp/extracted-code.ts
3546

0 commit comments

Comments
 (0)