-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (43 loc) · 1.28 KB
/
update-jsonld.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Update JSONLD
on:
push:
branches:
- '*'
# - main # Adjust this to your branch name if different
jobs:
update-jsonld:
runs-on: ubuntu-latest # Specify the machine type
steps:
- name: Get a list of directories with updated files
id: install-cmipld
uses: WCRP-CMIP/CMIP-LD/actions/cmipld@main
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Get a list of directories with updated files
id: updated-dirs
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
uses: WCRP-CMIP/CMIP-LD/actions/jsonld@main
with:
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