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

fix: update versions in release and canary workflows #911

Merged
merged 6 commits into from
Jan 31, 2025

Conversation

lily-de
Copy link
Collaborator

@lily-de lily-de commented Jan 29, 2025

Key changes:

  1. Add version input parameter to CLI and desktop build workflows
  2. Create central prepare-version job to manage version extraction from git tag
  3. Ensure Cargo.toml and package.json versions match before build/cache steps
  • cleanup, remove TODOs

workflow succeeded: https://github.com/block/goose/actions/runs/13045348906
test release (draft) - tagged it as test.1.0.1 : https://github.com/block/goose/releases/tag/untagged-fe0426d4b3b96b1ddc30

downloaded the CLI and App. looks like the version injections worked:
Screenshot 2025-01-29 at 11 09 48 PM
Screenshot 2025-01-29 at 11 08 12 PM

@lily-de lily-de changed the title process to update version fix: process to update version Jan 29, 2025
@michaelneale
Copy link
Collaborator

@lily-de I wish github would report when workflows syntax is wrong: https://github.com/block/goose/actions/runs/13040105120 is a silent failure otherwise

Copy link
Collaborator

@kalvinnchau kalvinnchau left a comment

Choose a reason for hiding this comment

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

should we evaluate something like https://github.com/crate-ci/cargo-release for helping with cargo version changes (instead of sed?)

.github/workflows/build-cli.yml Show resolved Hide resolved
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
git commit -am "Update versions to ${{ needs.prepare-version.outputs.version }}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: should we be more explicit and select the exact files we're committing (Cargo.toml and ui/desktop/package.json) just in case other things change

.github/workflows/bundle-desktop.yml Show resolved Hide resolved
@salman1993 salman1993 changed the title fix: process to update version fix: update versions in release and canary workflows Jan 30, 2025
Comment on lines +31 to +34
# Something like "1.0.0-canary.<short sha>"
SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7)
VERSION="1.0.0-canary.${SHORT_SHA}"
echo "version=$VERSION" >> $GITHUB_OUTPUT
Copy link
Collaborator

Choose a reason for hiding this comment

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

we can use the git describe method to get the latest tag

❯ git describe --tags --abbrev=0
v1.0.2

something like

SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7)
LATEST_TAG=$(git describe --tags --abbrev=0)

# Strip the leading 'v' if it exists
CLEAN_TAG=${LATEST_TAG#v}

VERSION="${CLEAN_TAG}-canary.${SHORT_SHA}"
echo "version=$VERSION" >> $GITHUB_OUTPUT

* origin/main:
  fix: clarify linux cli install only (#927)
  feat: update ui for ollama host (#912)
  feat: add CONFIGURE=false option in install script (#920)
  fix: truncation agent token calculations (#915)
  fix: request payload for o1 models (#921)
  Update SupportedEnvironments.js so others don't get confused on why they can not open the macos app on x86 (#888)
  fix: improve configure process with error message (#919)
  docs: Goose on Windows via WSL (#901)
  fix: more graceful handling of missing usage in provider response (#907)
  feat: rm uv.lock cause it points to square artifactory (#917)
  feat: Update issue templates for bug report for goose (#913)
  fix: post endpoint url on sse endpoint event (#900)
@salman1993 salman1993 merged commit 3d0c58e into main Jan 31, 2025
michaelneale added a commit that referenced this pull request Jan 31, 2025
* main: (28 commits)
  ci: per semver build metadata should be after + (#971)
  fix: temp fix to make CI workflow pass (#970)
  chore: bump patch version to 1.0.3 (#967)
  fix: load shell automatically from env for GUI (#948)
  fix: update versions in release and canary workflows (#911)
  docs: fix typo, name (#963)
  docs: typo fix (#961)
  chore: remove gpt-3.5-turbo UI suggestion, as it is deprecated (#959)
  chore: remove o1-mini suggestion from UI add model view (#957)
  fix: missing field in request (#956)
  docs: update provider docs, fix rate limit link (#943)
  fix: clarify linux cli install only (#927)
  feat: update ui for ollama host (#912)
  feat: add CONFIGURE=false option in install script (#920)
  fix: truncation agent token calculations (#915)
  fix: request payload for o1 models (#921)
  Update SupportedEnvironments.js so others don't get confused on why they can not open the macos app on x86 (#888)
  fix: improve configure process with error message (#919)
  docs: Goose on Windows via WSL (#901)
  fix: more graceful handling of missing usage in provider response (#907)
  ...
@yingjiehe-xyz yingjiehe-xyz deleted the ldelalande/bump-versions branch February 5, 2025 21:09
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.

4 participants