From 929de1e2173db92aeba66fc6fd6ea280b356e31e Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Thu, 14 Oct 2021 17:25:58 +0200 Subject: [PATCH] fix: update versions.json on tag --- .github/workflows/docs-build-update.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-build-update.yml b/.github/workflows/docs-build-update.yml index 7b678eaaf22..2407e9ee4b3 100644 --- a/.github/workflows/docs-build-update.yml +++ b/.github/workflows/docs-build-update.yml @@ -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