diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index be3e6ee..034abe8 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -59,7 +59,7 @@ jobs:
git-user: terraform-docs-bot
git-user-email: bot@terraform-docs.io
git-commit-message: "Chocolatey update for terraform-docs version v${{ steps.vars.outputs.tag }}"
- excludes: README.md:LICENSE:.git:.github
+ excludes: README.md:LICENSE:DCO:.git:.github
homebrew:
runs-on: ubuntu-latest
diff --git a/scripts/release/release.sh b/scripts/release/release.sh
index 3cd5ed9..c436bfa 100755
--- a/scripts/release/release.sh
+++ b/scripts/release/release.sh
@@ -68,7 +68,8 @@ CLOSEST_VERSION=$(getClosestVersion)
# Bump the released version in README and version.go
if [[ $RELEASE_VERSION != *"-alpha"* && $RELEASE_VERSION != *"-beta"* && $RELEASE_VERSION != *"-rc"* ]]; then
sed -i -E "s|${CLOSEST_VERSION}|${RELEASE_VERSION}|g" README.md
- git add README.md
+ sed -i -E "s|${CLOSEST_VERSION}|${RELEASE_VERSION}|g" docs/user-guide/installation.md
+ git add README.md docs/user-guide/installation.md
fi
sed -i -E "s|v${RELEASE_VERSION}-alpha|v${RELEASE_VERSION}|g" internal/version/version.go
diff --git a/scripts/release/update-choco.sh b/scripts/release/update-choco.sh
index bd3efa1..07a116d 100755
--- a/scripts/release/update-choco.sh
+++ b/scripts/release/update-choco.sh
@@ -50,7 +50,11 @@ git clone https://github.com/terraform-docs/chocolatey-package "${PWD}/chocolate
sed -i -E "s|${CLOSEST_VERSION}|${RELEASE_VERSION}|g" "${PWD}/chocolatey-package/terraform-docs.nuspec"
# Bump version and checksum in tools/chocolateyinstall.ps1
-CHECKSUM=$(grep windows-amd64.exe "${PWD}/../../dist/terraform-docs-v${RELEASE_VERSION}.sha256sum" | awk '{print $1}')
+CHECKSUM=$(grep windows-amd64.zip "${PWD}/../../dist/terraform-docs-v${RELEASE_VERSION}.sha256sum" | awk '{print $1}')
sed -i -E "s|checksum = '.*$|checksum = '${CHECKSUM}'|g" "${PWD}/chocolatey-package/tools/chocolateyinstall.ps1"
sed -i -E "s|v${CLOSEST_VERSION}|v${RELEASE_VERSION}|g" "${PWD}/chocolatey-package/tools/chocolateyinstall.ps1"
+
+pushd "${PWD}/chocolatey-package/"
+git diff
+popd