fix: Version-Bump Workflow/Script - Formatting before diff (#155)
## Description Set up Pre-Req's, and ensure that formatting is done before checking diff since it likes to not respect prettier formatting. --- ## Type of Change - [ ] New module - [X] Bug fix - [ ] Feature/enhancement - [ ] Documentation - [ ] Other --- ## Testing & Validation - [X] Tests pass (`bun test`) - [X] Code formatted (`bun run fmt`) - [ ] Changes tested locally --------- Co-authored-by: Atif Ali <atif@coder.com>
This commit is contained in:
parent
a8e23647c5
commit
a47ff911e1
9
.github/scripts/version-bump.sh
vendored
9
.github/scripts/version-bump.sh
vendored
@ -190,6 +190,15 @@ main() {
|
|||||||
|
|
||||||
done <<< "$modules"
|
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 "📋 Summary:"
|
||||||
echo "Bump Type: $bump_type"
|
echo "Bump Type: $bump_type"
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
11
.github/workflows/version-bump.yaml
vendored
11
.github/workflows/version-bump.yaml
vendored
@ -25,6 +25,17 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set up Bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
with:
|
||||||
|
bun-version: latest
|
||||||
|
|
||||||
|
- name: Set up Terraform
|
||||||
|
uses: coder/coder/.github/actions/setup-tf@main
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun install
|
||||||
|
|
||||||
- name: Extract bump type from label
|
- name: Extract bump type from label
|
||||||
id: bump-type
|
id: bump-type
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user