Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/actions/setup-build-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ runs:
id: get-version
shell: bash
run: |
VERSION=$(curl -s https://crates.io/api/v1/crates/ucp-schema | jq -r '.crate.max_version')
VERSION=$(cargo info ucp-schema | sed -n 's/^version: //p')
if [[ -z "$VERSION" ]]; then
echo "Error: Failed to fetch valid version from crates.io using cargo info" >&2
exit 1
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Cache ucp-schema binary
Expand All @@ -33,7 +37,7 @@ runs:
- name: Install ucp-schema
if: steps.cache-ucp-schema.outputs.cache-hit != 'true'
shell: bash
run: cargo install ucp-schema
run: cargo install ucp-schema --version ${{ steps.get-version.outputs.version }}

- name: Add cargo to PATH
shell: bash
Expand Down
1 change: 1 addition & 0 deletions docs/specification/discount.md
Original file line number Diff line number Diff line change
Expand Up @@ -605,3 +605,4 @@ Multiple discounts applied with full allocation breakdown:

With this data, an agent can explain:
> "Your T-Shirt ($60) got $12 off from the 20% summer sale, plus $3 from your
> loyalty reward (split proportionally). Total savings on this item: $15.
Loading
Loading