Skip to content

Commit

Permalink
add current ipfs version in cli doc
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed Mar 16, 2022
1 parent 6ae426b commit fe98368
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/update-on-new-ipfs-tag/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ echo "The latest IPFS tag is ${LATEST_IPFS_TAG}"
if [ "$CURRENT_IPFS_TAG" = "$LATEST_IPFS_TAG" ]; then
echo "http-api-docs already uses the latest go-ipfs tag."
else
# update installation docs
while read -r file; do
echo "replacing $CURRENT_IPFS_TAG with $LATEST_IPFS_TAG in $file"
sed -E -i "s/$CURRENT_IPFS_TAG/$LATEST_IPFS_TAG/g" $file
done <<< "$(grep "current-ipfs-version" ./docs -R --files-with-matches)"

# update http-api-docs
git checkout -b bump-http-api-docs-ipfs-to-$LATEST_IPFS_TAG
sed "s/^\s*github.com\/ipfs\/go-ipfs\s\+$CURRENT_IPFS_TAG\s*$/ github.com\/ipfs\/go-ipfs $LATEST_IPFS_TAG/" go.mod > go.mod2
Expand Down
1 change: 1 addition & 0 deletions docs/install/command-line.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Command-line
description: Using IPFS through the command-line allows you to do everything that IPFS Desktop can do, but at a more granular level since you can specify which commands to run. Learn how to install it here.
current-ipfs-version: v0.12.0
---

# Command-line
Expand Down

0 comments on commit fe98368

Please sign in to comment.