From 103d6ae4cdfaec5334267b6b69d0960b5997f9fc Mon Sep 17 00:00:00 2001 From: DevelopmentCats Date: Wed, 18 Jun 2025 15:05:28 +0000 Subject: [PATCH 1/3] chore: add formatter execution to version-bump script --- .github/scripts/version-bump.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/scripts/version-bump.sh b/.github/scripts/version-bump.sh index b074583d..095d1279 100755 --- a/.github/scripts/version-bump.sh +++ b/.github/scripts/version-bump.sh @@ -190,6 +190,15 @@ main() { done <<< "$modules" + # Always run formatter to ensure consistent formatting + echo "🔧 Running formatter to ensure consistent formatting..." + if command -v bun >/dev/null 2>&1; then + bun fmt >/dev/null 2>&1 || echo "⚠️ Warning: bun fmt failed, but continuing..." + else + echo "⚠️ Warning: bun not found, skipping formatting" + fi + echo "" + echo "📋 Summary:" echo "Bump Type: $bump_type" echo "" From d4f4dbae005eab7850d85cbc754d4e66093f6503 Mon Sep 17 00:00:00 2001 From: DevelopmentCats Date: Wed, 18 Jun 2025 15:09:27 +0000 Subject: [PATCH 2/3] chore: enhance version-bump workflow with Bun and Terraform setup for formatting before diff check --- .github/workflows/version-bump.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/version-bump.yaml b/.github/workflows/version-bump.yaml index 2d0e88dd..9520554c 100644 --- a/.github/workflows/version-bump.yaml +++ b/.github/workflows/version-bump.yaml @@ -25,6 +25,17 @@ jobs: fetch-depth: 0 token: ${{ secrets.GITHUB_TOKEN }} + - name: Set up Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Set up Terraform + uses: hashicorp/setup-terraform@v3 + + - name: Install dependencies + run: bun install + - name: Extract bump type from label id: bump-type run: | From 1b25a1029fd7460eed1a5b183da875f6f9075728 Mon Sep 17 00:00:00 2001 From: DevCats Date: Thu, 19 Jun 2025 16:32:48 -0500 Subject: [PATCH 3/3] fix: update terraform set up Co-authored-by: Atif Ali --- .github/workflows/version-bump.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/version-bump.yaml b/.github/workflows/version-bump.yaml index 9520554c..b492ffc5 100644 --- a/.github/workflows/version-bump.yaml +++ b/.github/workflows/version-bump.yaml @@ -31,7 +31,7 @@ jobs: bun-version: latest - name: Set up Terraform - uses: hashicorp/setup-terraform@v3 + uses: coder/coder/.github/actions/setup-tf@main - name: Install dependencies run: bun install