Skip to content

Commit

Permalink
Added Power Automate
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoabernier authored Jul 28, 2023
1 parent a9b491c commit 7c45248
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/merge-sample-json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,15 @@ jobs:
-H "Accept: application/vnd.github.v3.raw" \
-o ./main/.metadata/powerapps-samples.json \
https://raw.githubusercontent.com/pnp/powerapps-samples/main/.metadata/samples.json
- name: Download Power Automate samples
run: |
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3.raw" \
-o ./main/.metadata/powerautomate-samples.json \
https://raw.githubusercontent.com/pnp/powerautomate-samples/main/.metadata/samples.json
- name: Join samples
run: |
jq -s '[.[][]]' ./main/samples/**/assets/sample.json ./main/.metadata/powerapps-samples.json > ./Docs/docs/samples.json
jq -s '[.[][]]' ./main/samples/**/assets/sample.json ./main/.metadata/powerapps-samples.json ./main/.metadata/powerautomate-samples.json > ./Docs/docs/samples.json
- name: Validate JSON
uses: docker://orrosenblatt/validate-json-action:latest
continue-on-error: true
Expand Down

0 comments on commit 7c45248

Please sign in to comment.