Skip to content

Commit bf68bcf

Browse files
authored
Sync validate-markdown workflow with main (3.2.0) (OAI#3560)
* Sync validate-markdown workflow with main (3.2.0) * Match latest environment from main
1 parent 6f60ea1 commit bf68bcf

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/validate-markdown.yaml

+9-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- uses: actions/checkout@v2 # checkout repo content
22-
- uses: actions/setup-node@v1 # setup Node.js
21+
- uses: actions/checkout@v4 # checkout repo content
2322
with:
24-
node-version: '12.x'
23+
fetch-depth: 0
24+
- name: use the javascript environment from main
25+
run: |
26+
git checkout remotes/origin/main -- package.json package-lock.json
27+
- uses: actions/setup-node@v4 # setup Node.js
28+
with:
29+
node-version: '20.x'
2530
- name: Validate markdown
26-
run: npx mdv versions/3.*.md
31+
run: npx --yes mdv versions/3.*.md
2732

0 commit comments

Comments
 (0)