Skip to content

development

development #65

Workflow file for this run

name: Update JSONLD
on:
push:
# branches:
# - '*'
# - main # Adjust this to your branch name if different
branches-ignore:
- production
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: Set up Git
run: |
git pull
- name: Get a list of directories with updated files
id: updated-dirs
uses: WCRP-CMIP/CMIP-LD/actions/updated-dirs@main
with:
filter_dir: "data_descriptors"
- name: Group JSONLD files
id: group-jsonld
uses: WCRP-CMIP/CMIP-LD/actions/process_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: generate CV
# if: ${{ env.updated_dirs }}
# id: generate_cv
# run: |
# if [[ "${{env.updated_dirs}}" == *"JSONLD"* ]]; then
# gencv && git push origin HEAD
# fi
- name: Commit All
uses: WCRP-CMIP/CMIP-LD/actions/commit-all@main
with:
message: "Automated Content Update"
- name: Push Changes
run: |
git push
- name: Publish
if: github.ref_name == 'jsonld_IV'
uses: WCRP-CMIP/CMIP-LD/actions/publish2pages@main
with:
api_key: ${{ secrets.API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
branch_name: ${{ github.ref_name }}