Skip to content

Commit

Permalink
update action to run all scripts on update
Browse files Browse the repository at this point in the history
update action to run all scripts on update
  • Loading branch information
wolfiex committed Sep 13, 2024
1 parent f71997b commit 97b8cef
Show file tree
Hide file tree
Showing 30 changed files with 77 additions and 6,644 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/update-jsonld.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:

- name: Get a list of directories with updated files
id: updated-dirs
uses: WCRP-CMIP/CMIP-LD/actions/updated_dirs@main
uses: WCRP-CMIP/CMIP-LD/actions/updated-dirs@main
with:
filter_dir: "JSONLD"

- name: Compile JSONLD files, generate an RDF network and update frames
id: jsonld
Expand All @@ -30,4 +32,20 @@ jobs:
dirs: ${{ env.updated_dirs }}
frames: "$PWD/compiled/graph_data.json"


- name: Run Update Scripts
if: ${{ env.updated_dirs }}
id: run-all-files
uses: WCRP-CMIP/CMIP-LD/actions/run-all-files@main
with:
directory: "$PWD/JSONLD/scripts"
script: python
script_ext: .py

- name: Commit All
uses: WCRP-CMIP/CMIP-LD/actions/commit-all@main
with:
message: "Automated Content Update"

- name: Push Changes
run: |
git push
59 changes: 0 additions & 59 deletions JSONLD/archive/showcase /combine_ld.py

This file was deleted.

19 changes: 0 additions & 19 deletions JSONLD/archive/showcase /context_data.json

This file was deleted.

Loading

0 comments on commit 97b8cef

Please sign in to comment.