Přidat požadované vzdělání #57
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: CI | |
on: | |
push: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Get all files | |
uses: opendata-mvcr/lkod-github-actions/list-files@master | |
- name: Filter files | |
uses: opendata-mvcr/lkod-github-actions/filter-files@master | |
with: | |
input-file: ./files.json | |
filter-json: >- | |
{ | |
"./files-json.json": [ ".*\\.json$" ], | |
"./files-jsonld.json": [ ".*\\.jsonld$" ] | |
} | |
- run: touch ${HOME}/report.json | |
- name: Validate JSON syntax | |
uses: opendata-mvcr/lkod-github-actions/validate-json-syntax@master | |
with: | |
input-file: ./files-json.json | |
output-file: ./report.json | |
- name: Validate JSON-LD JSON syntax | |
uses: opendata-mvcr/lkod-github-actions/validate-json-syntax@master | |
with: | |
input-file: ./files-jsonld.json | |
output-file: ./report.json | |
# - name: Validate JSON-LD not empty | |
# uses: opendata-mvcr/lkod-github-actions/validate-jsonld-not-empty@master | |
# with: | |
# input-file: ./files-jsonld.json | |
# output-file: ./report.json | |
- name: Push annotations | |
uses: opendata-mvcr/lkod-github-actions/push-annotations@master | |
with: | |
annotations-file: ./report.json | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |