Fixing path to samples

This commit is contained in:
Hugo Bernier 2023-08-05 17:51:40 -04:00 committed by GitHub
parent b468359c62
commit b9c621e495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -35,11 +35,11 @@ jobs:
run: | run: |
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3.raw" \ -H "Accept: application/vnd.github.v3.raw" \
-o ./main/.metadata/extension-samples.json \ -o ./main/.metada/extension-samples.json \
https://raw.githubusercontent.com/pnp/sp-dev-fx-extensions/main/.metadata/samples.json https://raw.githubusercontent.com/pnp/sp-dev-fx-extensions/main/.metadata/samples.json
- name: Join samples - name: Join samples
run: | run: |
jq -s '[.[][]]' ./main/samples/**/assets/sample.json ./main/.metadata/extension-samples.json > ./Docs/docs/samples.json jq -s '[.[][]]' ./main/samples/**/assets/sample.json ./main/.metada/extension-samples.json > ./Docs/docs/samples.json
- name: Validate JSON - name: Validate JSON
uses: docker://orrosenblatt/validate-json-action:latest uses: docker://orrosenblatt/validate-json-action:latest
env: env: