Skip to content

Commit 23436be

Browse files
committed
Update release scripts
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
1 parent 7327de1 commit 23436be

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
git-user: terraform-docs-bot
6060
git-user-email: bot@terraform-docs.io
6161
git-commit-message: "Chocolatey update for terraform-docs version v${{ steps.vars.outputs.tag }}"
62-
excludes: README.md:LICENSE:.git:.github
62+
excludes: README.md:LICENSE:DCO:.git:.github
6363

6464
homebrew:
6565
runs-on: ubuntu-latest

scripts/release/release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ CLOSEST_VERSION=$(getClosestVersion)
6868
# Bump the released version in README and version.go
6969
if [[ $RELEASE_VERSION != *"-alpha"* && $RELEASE_VERSION != *"-beta"* && $RELEASE_VERSION != *"-rc"* ]]; then
7070
sed -i -E "s|${CLOSEST_VERSION}|${RELEASE_VERSION}|g" README.md
71-
git add README.md
71+
sed -i -E "s|${CLOSEST_VERSION}|${RELEASE_VERSION}|g" docs/user-guide/installation.md
72+
git add README.md docs/user-guide/installation.md
7273
fi
7374

7475
sed -i -E "s|v${RELEASE_VERSION}-alpha|v${RELEASE_VERSION}|g" internal/version/version.go

scripts/release/update-choco.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ git clone https://github.com/terraform-docs/chocolatey-package "${PWD}/chocolate
5050
sed -i -E "s|<version>${CLOSEST_VERSION}</version>|<version>${RELEASE_VERSION}</version>|g" "${PWD}/chocolatey-package/terraform-docs.nuspec"
5151

5252
# Bump version and checksum in tools/chocolateyinstall.ps1
53-
CHECKSUM=$(grep windows-amd64.exe "${PWD}/../../dist/terraform-docs-v${RELEASE_VERSION}.sha256sum" | awk '{print $1}')
53+
CHECKSUM=$(grep windows-amd64.zip "${PWD}/../../dist/terraform-docs-v${RELEASE_VERSION}.sha256sum" | awk '{print $1}')
5454

5555
sed -i -E "s|checksum = '.*$|checksum = '${CHECKSUM}'|g" "${PWD}/chocolatey-package/tools/chocolateyinstall.ps1"
5656
sed -i -E "s|v${CLOSEST_VERSION}|v${RELEASE_VERSION}|g" "${PWD}/chocolatey-package/tools/chocolateyinstall.ps1"
57+
58+
pushd "${PWD}/chocolatey-package/"
59+
git diff
60+
popd

0 commit comments

Comments
 (0)