Merging TTLs #1421
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-turtle-files | |
run-name: Merging TTLs | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '00 21 */1 * *' | |
jobs: | |
merge-ttl: | |
runs-on: ubuntu-latest | |
env: | |
destination_file: Robert_Koch-Institut_DCAT-AP-DE.ttl | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: find Namespaces in a random ttl file and add it to a new merged ttl file | |
run: find ./Datensaetze/*.ttl -type f | head -n 1 | xargs grep -h '@prefix' > ${{ env.destination_file }} | |
- name: Merge content of all ttl files and append it to destination file | |
run: find ./Datensaetze/*.ttl | xargs grep -vh '@prefix' >> ${{ env.destination_file }} | |
- name: Add and Commit Changes | |
uses: EndBug/[email protected] | |
with: | |
message: 'Update ${{ env.destination_file }}' |