Skip to content

Commit 9a54000

Browse files
committed
development
1 parent 4aae51a commit 9a54000

File tree

14 files changed

+79
-121
lines changed

14 files changed

+79
-121
lines changed

.github/.DS_Store

2 KB
Binary file not shown.
0 Bytes
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
find . -type f -name "*.json" ! -path "*/docs/*" ! -path "*/.*" -print0 | while IFS= read -r -d '' file; do
4+
dir=$(dirname "$file")
5+
base=$(basename "$file" .json)
6+
cp "$file" "$dir/$base"
7+
done
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
find . -type f -name "_context" -print0 | while IFS= read -r -d '' file; do
3+
dir=$(dirname "$file")
4+
cp "$file" "$dir/_context.json"
5+
done
6+
7+
8+

.github/prepublish/ror-links.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# Copy JSON/extensionless files as rorkey.json and rorkey
3+
4+
find organisation -type f \( -name "*.json" -o ! -name "*.*" \) | while read f; do
5+
ror=$(jq -r '.ror // empty' "$f" 2>/dev/null | sed 's|.*ror.org/||')
6+
if [[ -n "$ror" ]]; then
7+
dir=$(dirname "$f")
8+
cp "$f" "$dir/$ror.json"
9+
cp "$f" "$dir/$ror"
10+
fi
11+
done
-37.9 KB
Binary file not shown.
-39.9 KB
Binary file not shown.
-37.6 KB
Binary file not shown.

.github/workflows/.DS_Store

0 Bytes
Binary file not shown.

.github/workflows/issue-templates.yml

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Update Issue Templates
1+
name: Update Issue Templates
22

33
on:
44
push:
@@ -36,22 +36,38 @@ jobs:
3636

3737
- name: Run template generator
3838
working-directory: ${{ github.workspace }}
39-
run: template_update
40-
continue-on-error: true
41-
42-
- name: Check for changes
43-
id: check_changes
4439
run: |
45-
if ! git diff --quiet .github/ISSUE_TEMPLATE/; then
46-
echo "changed=true" >> $GITHUB_OUTPUT
47-
fi
40+
template_update ;
41+
4842
continue-on-error: true
43+
env:
44+
GH_TOKEN: ${{ github.token }}
45+
46+
# - name: Check for changes
47+
# id: check_changes
48+
# run: |
49+
# if ! git diff --quiet .github/ISSUE_TEMPLATE/; then
50+
# echo "changed=true" >> $GITHUB_OUTPUT
51+
# fi
52+
# continue-on-error: true
4953

50-
- name: Commit and push changes
54+
# - name: Commit and push changes
5155

52-
run: |
53-
git config user.name "cmipld-actions[bot]"
54-
git config user.email "[email protected]"
55-
git add .github/ISSUE_TEMPLATE/*
56-
git diff --staged --quiet || git commit -m "auto-update issue templates from GEN_ISSUE_TEMPLATE"
57-
git push
56+
# run: |
57+
# git config user.name "cmipld-actions[bot]"
58+
# git config user.email "[email protected]"
59+
# git add .github/ISSUE_TEMPLATE/*
60+
# git diff --staged --quiet || git commit -m "auto-update issue templates from GEN_ISSUE_TEMPLATE"
61+
# git push
62+
63+
- name: Commit and Push Changes
64+
# if: steps.check_changes.outputs.no_changes == 'false'
65+
uses: EndBug/add-and-commit@v9
66+
with:
67+
add: '.github/'
68+
author_name: 'cmip-ipo'
69+
author_email: '[email protected]'
70+
message: 'Auto-update issue templates from GEN_ISSUE_TEMPLATE.'
71+
branch: main
72+
push: true
73+

0 commit comments

Comments
 (0)