Moved sample accessibility-color-contrast-checker to powerplatform-sa… #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Merge sample metadata | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
# When someone push to `main` branch | |
- main | |
paths: | |
- 'samples/**/assets/sample.json' | |
jobs: | |
build: | |
name: 'Merge all sample.json files to samples.json' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Join samples | |
run: | | |
jq -s '[.[][]]' samples/**/assets/sample.json > .metadata/samples.json | |
- name: Commit samples.json to main | |
uses: EndBug/add-and-commit@v9 | |
with: | |
add: 'docs/samples.json --force' | |
push: true | |
token: ${{ secrets.GITHUB_TOKEN }} |