-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
136 changed files
with
530 additions
and
108 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
A store of materials needed for the wiki |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Other | ||
about: Creating a general issue | ||
title: 'Add a descriptive summary here.' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
# General Issue | ||
|
||
Please provided a detailed outline of the problem, discussion or suggestion. | ||
|
||
Make sure to provide the following where it might apply. | ||
|
||
- [ ] Any relevant files or code snippets | ||
- [ ] Where this occurs |
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Process a new issue | ||
|
||
on: | ||
issues: | ||
types: [edited, labeled] | ||
# opened | ||
|
||
jobs: | ||
|
||
process_template: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: write | ||
checks: write | ||
contents: write | ||
deployments: write | ||
id-token: write | ||
issues: write | ||
# discussions: write | ||
packages: write | ||
pages: write | ||
pull-requests: write | ||
repository-projects: write | ||
# security-events: write | ||
statuses: write | ||
|
||
|
||
|
||
|
||
steps: | ||
|
||
- name: Get a list of directories with updated files | ||
id: install-cmipld | ||
uses: WCRP-CMIP/CMIP-LD/actions/cmipld@main | ||
|
||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
|
||
- name: Run Python script | ||
id: run_python | ||
env: | ||
ISSUE_TITLE: ${{ github.event.issue.title }} | ||
ISSUE_BODY: | | ||
${{ github.event.issue.body }} | ||
# pipe should preseve newline properties for multilines | ||
ISSUE_SUBMITTER: ${{ github.event.issue.user.login }} | ||
ISSUE_NUMBER: ${{ github.event.issue.number }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
run: | | ||
new_element | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: publish_to_pages | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
- "jsonld_IV" | ||
|
||
jobs: | ||
push2production: | ||
runs-on: ubuntu-latest | ||
env: | ||
API_KEY: ${{ secrets.API_KEY }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: ${{ github.ref_name }} | ||
permissions: | ||
actions: write | ||
checks: write | ||
contents: write | ||
deployments: write | ||
id-token: write | ||
packages: write | ||
pages: write | ||
pull-requests: write | ||
repository-projects: write | ||
statuses: write | ||
steps: | ||
|
||
|
||
- name: Check out the repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Fetch the complete commit history | ||
|
||
- name: Set up Git | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "Daniel Ellis" | ||
git config credential.helper store | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Daniel Ellis" | ||
git config --global push.default current | ||
echo "GH_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: create symbolic link without extension | ||
id: push_to_production | ||
run: | | ||
# Check if production branch exists; if not, create it | ||
if ! git show-ref --verify --quiet refs/heads/production; then | ||
git checkout -b production | ||
else | ||
git checkout production | ||
fi | ||
# Checkout the specified branch's data_descriptors directory | ||
git checkout "${BRANCH}" -- data_descriptors | ||
# Find all .json files and create symbolic links without the .json extension | ||
find . -type f -name "*.json" -exec sh -c 'ln -s "$0" "${0%.json}"' {} \; | ||
# Stage all changes, commit, and push to production branch | ||
git add -A | ||
git commit -m "production push" | ||
git push --force origin production | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
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: 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 |
Binary file not shown.
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"@context": { | ||
"@base": "https://WCRP-CMIP.github.io/WCRP-UNIVERSE/data_descriptors/frequency/", | ||
"@vocab": "https://WCRP-CMIP.github.io/WCRP-UNIVERSE/data_descriptors/frequency/", | ||
"id": "_context", | ||
"type": "@type" | ||
}, | ||
"@embed": "@always" | ||
} |
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
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
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
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
Oops, something went wrong.