fix: update versions in release and canary workflows (#911)

Co-authored-by: Salman Mohammed <smohammed@squareup.com>
This commit is contained in:
lily-de
2025-01-30 19:21:12 -05:00
committed by GitHub
parent 3569c6abee
commit 3d0c58e5f3
4 changed files with 86 additions and 23 deletions

View File

@@ -5,6 +5,9 @@
on:
workflow_call:
inputs:
version:
required: true
type: string
# Let's allow overriding the OSes and architectures in JSON array form:
# e.g. '["ubuntu-latest","macos-latest"]'
# If no input is provided, these defaults apply.
@@ -38,7 +41,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Rust
- name: Update version in Cargo.toml
run: |
sed -i.bak 's/^version = ".*"/version = "'${{ inputs.version }}'"/' Cargo.toml
rm -f Cargo.toml.bak
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
@@ -66,4 +74,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: goose-${{ matrix.architecture }}-${{ matrix.target-suffix }}
path: ${{ env.ARTIFACT }}
path: ${{ env.ARTIFACT }}