fix: update versions.json on tag
@@ -34,7 +34,7 @@ jobs:
# Pacify git if we were to commit something
git config user.email "nipreps@gmail.com"
- git config user.email "NiPreps Bot"
+ git config user.name "NiPreps Bot"
- name: Install GraphViz
run: |
sudo apt-get update -y
@@ -62,7 +62,7 @@ jobs:
rm -rf ${MAJOR_MINOR}
cp -r $HOME/docs/$CURBRANCH $PWD/${MAJOR_MINOR}
git add ${MAJOR_MINOR}
- python -c "from pathlib import Path; import json; f=Path('versions.json'); d=json.loads(f.read_text()); d['tags'].append(\"${MAJOR_MINOR}\"); d['tags'] = list(sorted(set(d['tags']))); f.write_text(json.dumps(d), indent=2); print('Updated versions.json')"
+ python -c "from pathlib import Path; import json; f=Path('versions.json'); d=json.loads(f.read_text()); d['tags'].append(\"${MAJOR_MINOR}\"); d['tags'] = list(sorted(set(d['tags']))); f.write_text(json.dumps(d, indent=4)); print('Updated versions.json')"
git add versions.json
git commit -m "rel(${CURBRANCH}): Update docs of ${MAJOR_MINOR} series" || true
git push
