Skip to content

JSONLD update

Overview

The repositories utilise GitHub Actions for continuous integration and deployment. The main workflow identified is named "Update JSONLD."

Workflow Description

  • Name: Update JSONLD
  • Purpose: This workflow is designed to update JSONLD files within the repository.
  • Conditions: The workflow triggers on specific events such as commits, pull requests, or schedule (based on the standard GitHub Actions triggers).

Key Steps and Inputs

  1. Checkout Repository:
  2. Action: actions/checkout@v4
  3. Inputs:
    • fetch-depth: 2
    • repository: wolfiex/obs4MIPs-cmor-tables-ld
  4. Description: Clones the repository with a depth of 2 to the runner.

  5. Install Dependencies:

  6. Action: pip install
  7. Inputs:
    • Various Python dependencies such as pytest, cmip-ld, etc.
  8. Description: Installs necessary Python packages for the workflow.

  9. Run Scripts:

  10. Action: Custom scripts (e.g., write_ancillary_C3S-GTO-ECV.py, obs4MIPsLib.py)
  11. Inputs:
    • Specific scripts and their associated parameters.
  12. Description: Executes scripts to process data, update files, or perform other tasks.

Mermaid Diagrams

Workflow Diagram
graph TD
    A[Start] --> B[actions/checkout@v4]
    B --> C[pip install dependencies]
    C --> D[Run custom scripts]
    D --> E[End]
Detailed Step Diagram
graph TD
    A[Start] --> B[actions/checkout@v4]
    B --> C1[fetch-depth: 2]
    B --> C2[repository]
    C1 --> D[pip install dependencies]
    C2 --> D
    D --> E1[Install pytest]
    D --> E2[Install cmip-ld]
    F[Run custom scripts]
    F --> G1[script1.py]
    F --> G2[script2.py]
    E1 --> F
    E2 --> F
    G1 --> H[Trigger Publish Workflow]
    G2 --> H
    H --> I[End]