mirror of
https://github.com/aljazceru/goose.git
synced 2026-02-21 06:24:22 +01:00
ci: update release processes using Justfile, make reusable workflows have optional version param (#972)
This commit is contained in:
6
.github/workflows/build-cli.yml
vendored
6
.github/workflows/build-cli.yml
vendored
@@ -6,7 +6,8 @@ on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
version:
|
||||
required: true
|
||||
required: false
|
||||
default: ""
|
||||
type: string
|
||||
# Let's allow overriding the OSes and architectures in JSON array form:
|
||||
# e.g. '["ubuntu-latest","macos-latest"]'
|
||||
@@ -42,6 +43,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Update version in Cargo.toml
|
||||
if: ${{ inputs.version != '' }}
|
||||
run: |
|
||||
sed -i.bak 's/^version = ".*"/version = "'${{ inputs.version }}'"/' Cargo.toml
|
||||
rm -f Cargo.toml.bak
|
||||
@@ -74,4 +76,4 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: goose-${{ matrix.architecture }}-${{ matrix.target-suffix }}
|
||||
path: ${{ env.ARTIFACT }}
|
||||
path: ${{ env.ARTIFACT }}
|
||||
|
||||
Reference in New Issue
Block a user