diff --git a/.github/actions/update-on-new-ipfs-tag/entrypoint.sh b/.github/actions/update-on-new-ipfs-tag/entrypoint.sh index 1aa74d760..a42583725 100755 --- a/.github/actions/update-on-new-ipfs-tag/entrypoint.sh +++ b/.github/actions/update-on-new-ipfs-tag/entrypoint.sh @@ -25,6 +25,15 @@ else make http-api-docs > $API_FILE + # update installation docs + cd $ROOT # go back to root of ipfs-docs repo + CURRENT_IPFS_NUMBER=${CURRENT_IPFS_TAG:1} + LATEST_IPFS_NUMBER=${LATEST_IPFS_TAG:1} + while read -r file; do + echo "replacing $CURRENT_IPFS_NUMBER with $LATEST_IPFS_NUMBER in $file" + sed -E -i "s/$CURRENT_IPFS_NUMBER/$LATEST_IPFS_NUMBER/g" $file + done <<< "$(grep "current-ipfs-version" ./docs -R --files-with-matches)" + # update cli docs cd $ROOT # go back to root of ipfs-docs repo git clone https://github.com/ipfs/go-ipfs.git diff --git a/.github/workflows/update-on-new-ipfs-tag.yml b/.github/workflows/update-on-new-ipfs-tag.yml index 8b7a8f467..9d770f6f0 100644 --- a/.github/workflows/update-on-new-ipfs-tag.yml +++ b/.github/workflows/update-on-new-ipfs-tag.yml @@ -25,6 +25,6 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} source_branch: ${{ steps.update.outputs.updated_branch }} destination_branch: "main" - pr_title: "Bump CLI and HTTP API reference to go-ipfs ${{ steps.latest_ipfs.outputs.latest_tag }}" + pr_title: "Bump references to go-ipfs ${{ steps.latest_ipfs.outputs.latest_tag }}" pr_body: "Release Notes: https://github.com/ipfs/go-ipfs/releases/${{ steps.latest_ipfs.outputs.latest_tag }}" pr_label: "needs/triage,P0" diff --git a/docs/install/command-line.md b/docs/install/command-line.md index 59c7c5c30..69fd11006 100644 --- a/docs/install/command-line.md +++ b/docs/install/command-line.md @@ -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