-
Notifications
You must be signed in to change notification settings - Fork 86
feat: enhance version bump script and CI workflow with ci mode #615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR enhances the version bump automation by adding a CI mode to the version bump script that produces cleaner, less verbose output when validation fails. The changes streamline the GitHub Actions workflow and improve the developer experience when version bumps are required.
Key changes:
- Adds
--ciflag to version-bump.sh script for automated validation mode - Simplifies CI workflow by removing complex output handling and using direct script execution
- Optimizes formatting to only process modified README files instead of the entire repository
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| registry/coder/modules/code-server/main.tf | Test comment added (should be removed before merge) |
| registry/coder/modules/code-server/README.md | Version references updated from 1.4.1 to 1.4.2 |
| .github/workflows/version-bump.yaml | Simplified workflow to use CI mode, cleaner failure comment |
| .github/scripts/version-bump.sh | Added CI mode flag, optimized formatting, updated loop condition |
❌ Version Bump RequiredOne or more modules in this PR need their versions updated. To fix this:
The CI will automatically re-run once you push the updated versions. |
2e1fe5d to
862bd9a
Compare
862bd9a to
aebdfb7
Compare
Version Bump RequiredOne or more modules in this PR need their versions updated. To fix this:
The CI will automatically re-run once you push the updated versions. |
- Add --ci flag to version-bump.sh for CI validation - CI mode runs version bump, formats files, then checks git diff - Exit 0 if no changes (versions already correct), exit 1 if changes needed - Update workflow to use --ci flag and post cleaner failure comment - Fix awk script to avoid adding extra blank lines - Run prettier on modified README files for consistent formatting
aebdfb7 to
eb05374
Compare
david-fraley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stamping approval
Description
Add CI mode to version bump script to output Pass or Fail with a less verbose comment when it fails
Type of Change
Testing & Validation
bun test)bun fmt)Related Issues