Skip to content

Commit

Permalink
fix: update versions.json on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Oct 14, 2021
1 parent 45a0b38 commit 929de1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs-build-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
# Pacify git if we were to commit something
git config user.email "[email protected]"
git config user.email "NiPreps Bot"
git config user.name "NiPreps Bot"
- name: Install GraphViz
run: |
sudo apt-get update -y
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 929de1e

Please sign in to comment.