-
Notifications
You must be signed in to change notification settings - Fork 410
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
Conversation
@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 |
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.
should we evaluate something like https://github.com/crate-ci/cargo-release for helping with cargo version changes (instead of sed?)
.github/workflows/release.yml
Outdated
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 }}" |
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.
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
# 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 |
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.
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)
* 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) ...
Key changes:
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-fe0426d4b3b96b1ddc30downloaded the CLI and App. looks like the version injections worked:
![Screenshot 2025-01-29 at 11 09 48 PM](https://private-user-images.githubusercontent.com/7154255/407990010-49511dbe-ba3c-4fbc-98ea-6cfe8edae8c4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5Mjg0NDksIm5iZiI6MTczODkyODE0OSwicGF0aCI6Ii83MTU0MjU1LzQwNzk5MDAxMC00OTUxMWRiZS1iYTNjLTRmYmMtOThlYS02Y2ZlOGVkYWU4YzQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2Jl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