Skip to content
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

chore: move update-version to ci #301

Merged
merged 5 commits into from
Sep 27, 2024
Merged

chore: move update-version to ci #301

merged 5 commits into from
Sep 27, 2024

Conversation

matifali
Copy link
Member

@matifali matifali commented Sep 24, 2024

Remove the automated update workflow in favor of a check.
This only lets us bump by a patch version for now, which is fine as we will have separate versions for each module eventually. See #157

This should also fix #229

@matifali matifali requested a review from mafredri September 24, 2024 18:59
@matifali matifali marked this pull request as ready for review September 24, 2024 18:59
@matifali matifali marked this pull request as draft September 24, 2024 19:12
@matifali matifali self-assigned this Sep 24, 2024
@matifali
Copy link
Member Author

@mafredri I could use your help in fixing the CI. the script works fine locally.

Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's just the if condition in yaml that's failing. The other changes are optional.

.github/workflows/ci.yaml Outdated Show resolved Hide resolved
update-version.sh Outdated Show resolved Hide resolved
update-version.sh Outdated Show resolved Hide resolved
@matifali
Copy link
Member Author

matifali commented Sep 25, 2024

Thank you @mafredri.
@Parkreiner, can we point our registry to the latest available tag instead of main after this PR, people will start seeing 1.0.19, which has not been pushed yet.

See #229 for more context on the problem.

Eliminate the GitHub workflow for automatic README updates and adjust the README files to reflect the new version tag. This change streamlines the process by removing redundant steps and ensures explicit control over version increments.

chore: add dependabot.yml (#302)

chore(deps): bump oven-sh/setup-bun from 1 to 2 (#305)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Update checkout action to fetch all tags

Improve version update script to handle errors

- Change version increment logic to handle missing tags.
- Add error handling for version mismatches in README.md files.
- Display directories with changed files for better visibility.

Improve version bumping process in update script

By checking for diffs after processing each README.md, we can
ensure that only modified files trigger version bump messages.
This change also refines the status check to target README.md files
specifically, aiding in precise error handling.

Clarify update script comment for version bumping

Improve version check and output in scripts

- Enhance visibility of version mismatches by focusing git diff on README.md files.
- Use command substitution to improve clarity in conditional checks.

Apply suggestions from code review

Co-authored-by: Mathias Fredriksson <[email protected]>

simplify

specify shell

Update ci.yaml

Update ci.yaml

Update update-version.sh

Update ci.yaml

Enhance version bump logic output in script

- Improve the clarity of version bump output by specifying current
  and incremented versions.
- Add additional message for unchanged README.md files.
@matifali matifali marked this pull request as ready for review September 25, 2024 14:38
@matifali matifali enabled auto-merge (squash) September 27, 2024 18:21
@matifali matifali merged commit bd6747f into main Sep 27, 2024
2 checks passed
@matifali matifali deleted the maa/lint-version branch September 27, 2024 18:24
@Kira-Pilot
Copy link
Member

@Parkreiner coder/internal#85 we can discuss this monday!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

registry.coder.com shows wrong version
3 participants